Skip to content
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

[Kernel] Fix IndexAddGradKernel #70353

Merged
merged 6 commits into from
Dec 23, 2024

Conversation

HydrogenSulfate
Copy link
Contributor

@HydrogenSulfate HydrogenSulfate commented Dec 19, 2024

PR Category

Execute Infrastructure

PR Types

Bug fixes

Description

Pcard-75624

  1. 修复IndexAddGradKernel中没有对输出的两个梯度向量指针判断空,导致使用paddle.grad求部分梯度时,由于另一个梯度指针为空导致报错问题,修改逻辑为仅当指针非空时才进行计算。
  2. 修改了部分原实现的一些细节问题,删除、移动了一些不合理的逻辑。
  3. 在原有单测中,使用paddle.grad替换backward

Copy link

paddle-bot bot commented Dec 19, 2024

你的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.

@HydrogenSulfate HydrogenSulfate merged commit aa67570 into PaddlePaddle:develop Dec 23, 2024
28 checks passed
@HydrogenSulfate HydrogenSulfate deleted the debug_meminfo branch December 23, 2024 02:53
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