-
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
new backward #6741
new backward #6741
Conversation
python/paddle/v2/fluid/backward.py
Outdated
return name + core.grad_var_suffix() | ||
|
||
|
||
def _append_backward_ops_(target, |
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.
This function is so long to read.
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.
Yes. It's only a draft. I'm refactoring it.
… dev_new_backward
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, 可以先merge一波。。
Does this mean that the previous append_backward implemented in C++ is no longer needed? |
Sorry for the delay in reply. Yes, the code in C++ is no longer needed. The purpose of this refactor is making backward supporting callback functions, which is required by error clip and gradient reduce in distributed training. |
fixes #6600