-
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
[ BugFix] fix is_test memory problem #58350
[ BugFix] fix is_test memory problem #58350
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
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.
bool in_forward_block = forward_global_block.HasVar(name); | ||
bool in_backward_block = | ||
backward_global_block && backward_global_block->HasVar(name); | ||
backward_global_block && backward_global_block->HasVar(name); |
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.
这条语句是有用的嘛?
* fix is_test memory problem/ * fix bugs * fix * fix variable not found error, just emit it.
* fix is_test memory problem/ * fix bugs * fix * fix variable not found error, just emit it.
PR types
Bug fixes
PR changes
Others
Description
fix is_test memory problem
原来的动转静没有完全考虑到 is_test 和 HasGrad 的情况。使用了need_grad 来合并重复的bool表达式。
PCard-66972