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

【Hackathon 7th PPSCI No.13】 Backward decomp for put_along_axis_grad op #67891

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

zeroRains
Copy link
Contributor

@zeroRains zeroRains commented Aug 31, 2024

PR Category

Operator Mechanism

PR Types

New features

Description

反向拆解put_along_axis_grad op

Copy link

paddle-bot bot commented Aug 31, 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.

Comment on lines 2447 to 2449
// 如果没有特殊说明,要替换的位置全部指在x这个tensor上的对应位置
// 对应位置的计算见文件paddle\phi\kernels\funcs\gather_scatter_functor.cc的L293-L319
// 将要替换的位置全部赋值为0
Copy link
Contributor

@HydrogenSulfate HydrogenSulfate Sep 2, 2024

Choose a reason for hiding this comment

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

代码注释可以简化一下,并且用英文比较好

Copy link
Contributor Author

@zeroRains zeroRains Sep 2, 2024

Choose a reason for hiding this comment

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

这是参考Phi的kernel实现的版本,这个注释是方便老师阅读,后续合入前会删除的,老师看看是否有什么问题。

Copy link
Contributor

Choose a reason for hiding this comment

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

这是参考Phi的kernel实现的版本,这个注释是方便老师阅读,后续合入前会删除的,老师看看是否有什么问题。

感觉没其他问题

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好的,那我删一下

@zeroRains
Copy link
Contributor Author

PR-CI-Inference 需要麻烦老师帮忙重跑一下,我这没有权限重跑_(:з」∠)_

@HydrogenSulfate

Copy link
Contributor

@HydrogenSulfate HydrogenSulfate 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 a994d08 into PaddlePaddle:develop Sep 3, 2024
28 of 29 checks passed
@zeroRains zeroRains deleted the put branch September 3, 2024 09:23
@luotao1 luotao1 changed the title 【Hackathon 7th No.13】 Backward decomp for put_along_axis_grad op 【Hackathon 7th PPSCI No.13】 Backward decomp for put_along_axis_grad op Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants