Skip to content

Minor Fix: Changed 'NamedShape' to 'DShapedArray' in layers.py for newer JAX version compatibility #210

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

obbwins
Copy link

@obbwins obbwins commented Apr 27, 2025

This PR fixes a minor incompatibility with newer JAX versions by updating the type annotation from jax.core.NamedShape to jax.core.DShapedArray in the compute_fans function.

This is a minimal change to address the immediate compatibility issue. I'm not super experienced with JAX so please let me know if an alternative is better :)

Tested with JAX version: 0.6.0

…edArray for compatibility with newer JAX versions
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