-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
BUG: np.linalg.vector_norm: return correct shape for keepdims #25560
Conversation
d550f38
to
dde4120
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.
Thanks for finding and fixing yet another bug! Clearly, added test coverage here was insufficient. One multi-option suggestion in-line, and also a ping to @mtsokol who added this.
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.
Given that my single comment was wrong, I can just approve this. Though I'll wait with merging until @mtsokol has had a look.
Thanks! |
Thank you for the fix! I took the implementation from the existing numpy/numpy/array_api/linalg.py Line 458 in 6e3b923
@jakevdp I think the same fix can be applied there. |
I don't think any fix is necessary there, because in that implementation |
Had 2 approvals and the failure is a false positive, so let's get this in. Thanks, @jakevdp! |
Removed the backport-candidate tag. This causes some some downstream churn. |
Fixes #25559