-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Extract apply_backward_pass to backward.py #5026
Extract apply_backward_pass to backward.py #5026
Conversation
ffcd758
to
5daec7b
Compare
Rename apply_backward_pass to append_backward_ops
@@ -90,45 +92,6 @@ def _get_accumulator(self, name, param): | |||
format(name, param.name)) | |||
return self._accumulators[name][param.name] | |||
|
|||
def create_backward_pass(self, loss, parameter_list=None, no_grad_set=None): |
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.
Optimizer中的接口应该保留
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来删,包括design一起修改,先提出来就行了
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.
Done.
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
f93c8f7
to
e7da76f
Compare
Rename apply_backward_pass to append_backward_ops