-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
fix auto backward bug #63113
fix auto backward bug #63113
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
2b54c77
to
61f5791
Compare
5914b93
to
fde3de2
Compare
@@ -649,6 +650,14 @@ def append_yield( | |||
]: | |||
continue | |||
|
|||
if all_input_stop_gradient_true( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
加一下注释吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,下个pr补充相关说明。
PR Category
Others
PR Types
Bug fixes
Description
while the stop_gradient of all inputs is true, we should skip calling the vjp interface.