Skip to content

[0-size Tensor] Add 0-size Tensor support for paddle.multiply、paddle.__mul___ #72984

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

Conversation

DanielSun11
Copy link
Contributor

@DanielSun11 DanielSun11 commented May 28, 2025

PR Category

Execute Infrastructure

PR Types

Improvements

Description

存在的问题

y为0 size Tensor,x为非0 size Tensor,x 的梯度存在错误。应该全是0。

  • 问题3
    image

xpu kernel 前向报错

检查与修复
  • paddle.multiply前向和反向的infermeta shape推导都正确
  • 出现问题的只有gpu,cpu测试未发现上述问题
  • 修复gpu multiply的反向kernel
  • 添加单测
  • paddleAPITest回测结果
    image
    除了一些非法参数输入,其余均通过。

pcard-67164

Copy link

paddle-bot bot commented May 28, 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 all-failed

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

@wanghuancoder wanghuancoder merged commit cdb4299 into PaddlePaddle:develop May 30, 2025
48 of 49 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.

2 participants