-
Notifications
You must be signed in to change notification settings - Fork 25k
Add support for single tensor in inputs
argument for backward
#53827
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
💊 CI failures summary and remediationsAs of commit b47ab0c (more details on the Dr. CI page):
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. |
730f9da
to
3fa7523
Compare
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.
I think we should update the language for the other arguments as well in the doc :D It can be confusing otherwise because Tensors are actually sequences, but we do treat them as Tensors here, not sequences.
Codecov Report
@@ Coverage Diff @@
## master #53827 +/- ##
==========================================
- Coverage 77.36% 76.98% -0.38%
==========================================
Files 1882 1882
Lines 183452 183452
==========================================
- Hits 141928 141238 -690
- Misses 41524 42214 +690 |
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.
Looks good, thanks for the update!
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.
@soulitzer has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@soulitzer merged this pull request in 7297556. |
…rch#53827) Summary: Also updates the doc such that the language matches the type. For example, previously the `tensors` argument is specified as `(sequence of tensor)`, but has type annotation of `_TensorOrTensors`. Now its correctly updated to be `Sequence[Tensor] or Tensor` Pull Request resolved: pytorch#53827 Reviewed By: albanD Differential Revision: D26997541 Pulled By: soulitzer fbshipit-source-id: e1e609a4e9525139d0fe96f6157175481c90d6f8
Also updates the doc such that the language matches the type. For example, previously the
tensors
argument is specified as(sequence of tensor)
, but has type annotation of_TensorOrTensors
. Now its correctly updated to beSequence[Tensor] or Tensor