-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Update full backward hook doc with not-same-object note #63245
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
Conversation
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit a706468 (more details on the Dr. CI page):
🕵️ 2 new failures recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
torch/nn/modules/module.py
Outdated
| arguments. | ||
| Note that this hook need to apply a Function to the inputs and outputs of the Module | ||
| during the forward pass. This means that Tensors passed as argument to the Module and |
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.
Typically words like "Tensors" and "Module" aren't capitalized
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.
Ho really? I always capitalize them when they refer to the actual PyTorch objects and not when they refer to general tensor/module.
Should I update it here?
Note that two lines above, there is a capitalized Tensor haha
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.
Hey @albanD! Overall looks good. I made a few wording suggestions for your review.
|
@mruberry could you take a second look please? I did a full rewrite following your advice. |
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!
|
@albanD has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Fixes #61446