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

Fix breaking changes introduced in JAX 0.4.36. #907

Merged
merged 2 commits into from
Dec 8, 2024

Conversation

patrick-kidger
Copy link
Owner

See:

The problem was that batching has now become a dynamic trace, and our batching rules were not set up to handle the case that every batch axis is not_mapped.

See:

- jax-ml/jax#25289
- patrick-kidger/diffrax#532

The problem was that batching has now become a dynamic trace, and our batching rules were not set up to handle the case that every batch axis is `not_mapped`.
We still have one in `filter_jvp` that might need some later resolution, as JAX now has a comment indicating that they intend to remove this function.

`if_mapped` was never documented (and frankly not that useful either) so I'm treating its removal here as a non-breaking change.
@patrick-kidger patrick-kidger merged commit d7d2cb9 into main Dec 8, 2024
1 check passed
@patrick-kidger patrick-kidger deleted the jax-breakage-fixes branch December 8, 2024 02:34
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.

1 participant