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

Add fixes for jax 0.4 #601

Merged
merged 3 commits into from
Dec 17, 2022
Merged

Add fixes for jax 0.4 #601

merged 3 commits into from
Dec 17, 2022

Conversation

fehiepsi
Copy link
Member

@fehiepsi fehiepsi commented Dec 17, 2022

Currently, JAX releases 0.4, which drops support for 3.8. So we need to bump version in CI to be able to test the latest version. In addition, additional treatment for jax array is needed because after jax 0.4, DeviceArray becomes jax.Array (i.e. jax.numpy.ndarray) and tracer is a subclass of jax Arrray.

Also attempt to fix docs builds which are failing recently

Copy link
Member

@fritzo fritzo left a comment

Choose a reason for hiding this comment

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

LGTM. I'm surprised this PR didn't include a jax>=0.4 version pin. Should we add one?

Feel free to hit the merge button either way 👍

@fehiepsi
Copy link
Member Author

Hi Fritz, thanks for reviewing. The change works for both jax 0.4 and jax < 0.4. We have two separate jobs for jax backend on CI: python 3.8 with latest jax and python 3.7 with jax < 0.4.

@fehiepsi fehiepsi merged commit 0294f5e into pyro-ppl:master Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants