Skip to content
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

Upgrade jax and fix deprecation warnings #915

Conversation

DrJessop
Copy link
Contributor

@DrJessop DrJessop commented Dec 18, 2024

Jax v0.4.38 deprecated many APIs in jax.core, and can be replaced instead by jax.extend.core.
Jax v0.4.38 also required me to upgrade python.

Fixes: #913

@@ -4,6 +4,7 @@
import equinox.internal as eqxi
import jax
import jax.core
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix!

By the way, do we need to keep all of the import jax.core around? I'm guessing most of these can be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems you failed to push after removing the unused imports?

Copy link
Contributor Author

@DrJessop DrJessop Dec 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@garymm No, a fair amount of files still need jax.core, hence why it's not removed everywhere.

@DrJessop DrJessop force-pushed the agrebenisan/fix-jax-deprecation-warnings branch from dba54ed to 3f32594 Compare December 19, 2024 17:11
@patrick-kidger patrick-kidger merged commit 9780faf into patrick-kidger:main Dec 21, 2024
1 check passed
@patrick-kidger
Copy link
Owner

Alright, LGTM! Thank you for the upgrades :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecation warning in jax 0.4.38
3 participants