Skip to content

[PHI] fix paddle.allclose for big tensor #73291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2025

Conversation

DanielSun11
Copy link
Contributor

@DanielSun11 DanielSun11 commented Jun 12, 2025

PR Category

Execute Infrastructure

PR Types

Bug fixes

Description

存在的问题:

输出tensor的numel超过int的最大值时出现int溢出进而出现访存越界

修复方法:

numel超过int 最大值时使用int64 否则使用用int32

回测结果:

image

cuda error 700 已经修复。有一些case报invalid arguement,这不是big Tensor造成的,是allclose不支持shape不同的输入Tensors

pcard-67164

Copy link

paddle-bot bot commented Jun 12, 2025

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@DanielSun11
Copy link
Contributor Author

/re-run all-failed

@DanielSun11
Copy link
Contributor Author

/re-run build

1 similar comment
@DanielSun11
Copy link
Contributor Author

/re-run build

@DanielSun11
Copy link
Contributor Author

/re-run all-failed

@lshpku lshpku merged commit 433e7d2 into PaddlePaddle:develop Jun 17, 2025
111 of 121 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants