Skip to content

[BIT] Fix paddle.unstack api for big tensor #72931

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 2 commits into from
May 30, 2025

Conversation

cszdrg
Copy link
Contributor

@cszdrg cszdrg commented May 26, 2025

PR Category

Operator Mechanism

PR Types

Bug fixes

Description

修复paddle.unstack的int溢出问题
样例为paddle.unstack(Tensor([2147483648, 2],"float32"), 1, )在反向与torch进行比较会爆内存
替换为paddle.unstack(Tensor([2147483648, 2],"float16"), 1, )和paddle.unstack(Tensor([1073741824, 2],"float16"), 1, )两个样例均可以通过测试

Copy link

paddle-bot bot commented May 26, 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.

@paddle-bot paddle-bot bot added the contributor External developers label May 26, 2025
@cszdrg cszdrg changed the title [BIT] unstack [BIT] Fix paddle.where api for big tensor May 26, 2025
@cszdrg cszdrg closed this May 26, 2025
@cszdrg cszdrg reopened this May 26, 2025
@cszdrg cszdrg changed the title [BIT] Fix paddle.where api for big tensor [BIT] Fix paddle.unstack api for big tensor May 26, 2025
@cszdrg cszdrg closed this May 28, 2025
@cszdrg cszdrg reopened this May 29, 2025
Copy link
Contributor

@wanghuancoder wanghuancoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@luotao1 luotao1 merged commit d349604 into PaddlePaddle:develop May 30, 2025
167 of 173 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers skip-ci: xpu
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants