-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Fix some tensor operators to return NotImplemented
for invalid inputs
#58216
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 41af3ca (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
Job | Step | Action |
---|---|---|
Checkout pytorch/builder repo | 🔁 rerun | |
Checkout pytorch/builder repo | 🔁 rerun | |
Checkout pytorch/builder repo | 🔁 rerun |
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.
Hi thanks for the new PR |
27f4daa
to
d083d47
Compare
I think there are some formatting issue (missing parenthesis)? |
@albanD Sorry, I have accidentally deleted the comma at the end of the line before I committed. Now I fixed it! |
I would like to get the windows cuda test to run here before merging to make sure we don't have to revert again. It might take a few days as we are changing this process right now. |
Ok, it should be ready now. Could you rebase on top of master please so that we can run all the CI? |
@albanD Rebased! |
Codecov Report
@@ Coverage Diff @@
## master #58216 +/- ##
==========================================
+ Coverage 70.46% 76.47% +6.01%
==========================================
Files 1969 1992 +23
Lines 197141 199899 +2758
==========================================
+ Hits 138909 152867 +13958
+ Misses 58232 47032 -11200 |
@albanD has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@albanD Thanks! |
Summary: Fixes #58035. This PR implements `torch.Tensor.__rmod__` and `torch.remainder(scalar, tensor)` for the compatibility with NumPy’s interface. (cc: mruberry, rgommers, emcastillo, kmaehashi) TODO: - [x] Update `tensor_binary_op` in test/test_binary_ufuncs.py after #58216 is merged. Pull Request resolved: #58476 Reviewed By: ngimel Differential Revision: D28776810 Pulled By: mruberry fbshipit-source-id: 74f8aea80f439ef2cc370333524e39971eeb7bf4
Summary: Fixes pytorch#58035. This PR implements `torch.Tensor.__rmod__` and `torch.remainder(scalar, tensor)` for the compatibility with NumPy’s interface. (cc: mruberry, rgommers, emcastillo, kmaehashi) TODO: - [x] Update `tensor_binary_op` in test/test_binary_ufuncs.py after pytorch#58216 is merged. Pull Request resolved: pytorch#58476 Reviewed By: ngimel Differential Revision: D28776810 Pulled By: mruberry fbshipit-source-id: 74f8aea80f439ef2cc370333524e39971eeb7bf4
Same as #57934. (cc/ @albanD)