-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 axis=None, keepdims=True
for jnp.quantile
and jnp.median
#20251
Fix axis=None, keepdims=True
for jnp.quantile
and jnp.median
#20251
Conversation
Good catch, thanks for the fix! One minor suggestion: rather than new specific test cases, we could add relevant cases to the old tests. For example here: https://github.com/google/jax/blob/64bd95ded50fc647d6e80a55ab1cb3baef368cf6/tests/lax_numpy_reducers_test.py#L664 |
I'm not familar with the test configuration of JAX. Thanks for the suggestion. |
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 great, thanks!
Last thing: could you please squash the changes into a single commit? See https://jax.readthedocs.io/en/latest/contributing.html#single-change-commits-and-pull-requests. Thanks!
891b854
to
a92fba7
Compare
Fix `axis=None` and `keepdims=True` for `jnp.quantile` and `jnp.median` Remove `print` Update tests
a92fba7
to
c295b16
Compare
It should be a one-commit PR right now. Thanks for the tip. |
Kindly ping @jakevdp |
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!
This PR fixes the incorrect behavior:
The corresponding tests have been included