-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
Update deprecated Jax calls #35919
Update deprecated Jax calls #35919
Conversation
@sanchit-gandhi -- the test environment seems to be using the older version of Jax, despite |
@ArthurZucker @sanchit-gandhi -- do you know who can help with this? There are various other upcoming jax deprecations that I'd like to fix, so being able to test them correctly would be helpful. |
@Rocketknight1 @amyeroberts -- please let me know how to proceed! I would love to get rid of some of these deprecated methods so that the library can be kept up-to-date. |
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.
Sounds good! The failing tests are probably due to the image docker being used, could you confirm that these pass locally? 🤗
Co-authored-by: Jake Vanderplas <jakevdp@google.com>
Hi @ArthurZucker, I've rebased to main and all tests are passing! Let me know if any additional action is needed. |
cc @Rocketknight1 as well if you're able to review! |
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.
Merging!
This reverts commit f0d5b2f.
This reverts commit f0d5b2f.
Hi @ArthurZucker, sorry this broke things! Do you know what went wrong? Is there a way to test this properly going forward? The CI does not seem to use an updated/custom Docker image if changes are made, so I'm not sure what the best approach is. |
Yeah sorry, it was just |
We'll try to come back to this |
jax v0.4.27 introduced the deprecation of
jax.numpy.clip
'sa_min
anda_max
arguments (changing to justmin
andmax
, respectively). This PR updates all uses of jnp.clip to use these new arguments.This PR was originally written by @jakevdp.
cc @sanchit-gandhi your review would be appreciated!