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

[Cherr-pick] Fix take_along_axis_grad and p_norm_decomp #70340

Merged
merged 5 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. 修复p_norm_decompasvector=True时,规约axis和结果形状不正确的问题
  2. 修复静态图拆解take_along_axis_grad中,当indices内含有重复的下标时,结果错误的问题,从assign模式改为add模式解决(include_self暂时需要指定为True,不能为False,否则计算结果错误)。

Related PR: #70250 , #69675

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.

…addlePaddle#70250)

* fix take_along_axis_grad when duplicated entries in indices

* update unitest

* add grad check

* use include_self=True to avoid BUG
zyfncg
zyfncg previously approved these changes Dec 20, 2024
@phlrain phlrain merged commit d66ed50 into PaddlePaddle:release/3.0-rc Dec 23, 2024
19 checks passed
@HydrogenSulfate HydrogenSulfate deleted the fix_p_norm branch December 23, 2024 05:50
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