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] Support variables in parent scope exposed in jax v0.4.34 #7

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

kasper0406
Copy link
Owner

After testing with Jax v0.4.34 two of the flax tests started failing, because a loop would refer a variable not available in the child-loop body context. Instead the variable was defined in the parent scope of the context.

This PR extends the variable search to include all parent contexts.

@kasper0406 kasper0406 merged commit 7d03a49 into main Oct 7, 2024
2 checks passed
@kasper0406 kasper0406 deleted the kn/fix-variable-scope branch October 7, 2024 19: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