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

conduct stop_gradient for pylayer output when not_inplace #64567

Merged
merged 1 commit into from
May 24, 2024

Conversation

wanghuancoder
Copy link
Contributor

@wanghuancoder wanghuancoder commented May 24, 2024

PR Category

Execute Infrastructure

PR Types

Bug fixes

Description

PyLayer在input作为output时,会被认为inplace。如果需要不被inplace,需要标记mark_not_inplace。此时,PyLayer会复制一份input给output。复制时,需要同时复制stop_gradient。

Pcard-67164

Copy link

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

@wanghuancoder wanghuancoder merged commit 5b79bca into PaddlePaddle:develop May 24, 2024
32 checks passed
chen2016013 pushed a commit to chen2016013/Paddle that referenced this pull request May 26, 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