-
Notifications
You must be signed in to change notification settings - Fork 25.7k
DOC Adds register_module_full_backward_hook into docs #58954
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
DOC Adds register_module_full_backward_hook into docs #58954
Conversation
💊 CI failures summary and remediationsAs of commit 688e4d7 (more details on the Dr. CI page):
1 failure not recognized by patterns:
XLA failureJob pytorch_xla_linux_bionic_py3_6_clang9_test is failing. Please create an issue with title prefixed by This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
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.
Thanks for adding this! Would you mind also tweaking the link to the function from register_backward_hook() so it renders correctly?
pytorch/torch/nn/modules/module.py
Line 859 in afdfd22
| This function is deprecated in favor of :meth:`nn.Module.register_full_backward_hook` and |
I think the above link should be this instead:
`:meth:`~torch.nn.Module.register_full_backward_hook`
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! Thanks for the update :)
|
@jbschlosser has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
@jbschlosser merged this pull request in 8af6281. |
Summary: Fixes pytorch#54443 Adds `register_module_full_backward_hook` into the index so it is rendered in the html docs. Pull Request resolved: pytorch#58954 Reviewed By: ngimel Differential Revision: D28801816 Pulled By: jbschlosser fbshipit-source-id: a2e737fe983e5d7e4e26d7639183bca34b571cb8
Fixes #54443
Adds
register_module_full_backward_hookinto the index so it is rendered in the html docs.