-
Notifications
You must be signed in to change notification settings - Fork 23k
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
Fix degenerate shape behavior for ord=+/-2 #60273
Conversation
💊 CI failures summary and remediationsAs of commit d7286cb (more details on the Dr. CI page and at hud.pytorch.org/pr/60273): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 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. |
3e68a39
to
0968dfc
Compare
0968dfc
to
7c9981e
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.
Since this PR fixes #59198, please also remove
Lines 1973 to 1977 in b0c9762
# TODO: This was disabled in https://github.com/pytorch/pytorch/pull/59067, because it failed after | |
# fixing the underlying comparison mechanism. It should have never been passing in the first place. | |
# This should be reinstated as soon as https://github.com/pytorch/pytorch/issues/59198 is fixed. | |
if input_size in ((S, S, 0), (1, S, 0)) and not keepdim and ord in (2, -2): | |
continue |
7c9981e
to
7d22a4d
Compare
7d22a4d
to
d7286cb
Compare
Codecov Report
@@ Coverage Diff @@
## master #60273 +/- ##
==========================================
- Coverage 76.11% 76.11% -0.01%
==========================================
Files 2058 2058
Lines 205791 205784 -7
==========================================
- Hits 156630 156623 -7
Misses 49161 49161 |
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.
Awesome! Thanks @kurtamohler!
@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Fixes #59198