-
Notifications
You must be signed in to change notification settings - Fork 24.2k
Treat dim=[] same as dim=None #153570
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
base: main
Are you sure you want to change the base?
Treat dim=[] same as dim=None #153570
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/153570
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 2ae477b with merge base 5e6e52e ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
❌ 🤖 pytorchbot command failed:
Try |
@pytorchbot label "topic: not user facing" |
Add a test please |
Test added, without fix it fails on
|
@@ -1929,6 +1929,13 @@ def test_vector_norm_reduce_over_1D_vector(self, device, dtype): | |||
msg = f'input.size()={input.size()}, ord={ord}, dim={dim}, keepdim={keepdim}, dtype={dtype}' | |||
self.assertEqual(result, result_numpy, msg=msg) | |||
|
|||
def test_vector_norm_compile(self, device): |
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.
this would be better in test/inductor
Fixes #153568