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

cannot import name 'ShapedArrayRef' due to deprecation in jax._src.state #271

Open
dtunai opened this issue Mar 12, 2024 · 0 comments
Open

Comments

@dtunai
Copy link

dtunai commented Mar 12, 2024

Hello. When importing the latest packaged version of Jax-Triton (jax-triton==0.1.3), it returns an error as follows:

[/usr/local/lib/python3.10/dist-packages/jax_triton/pallas/lowering.py](https://localhost:8080/#) in <module>
     33 from jax._src.state import primitives as sp
     34 from jax._src.state import discharge
---> 35 from jax._src.state import ShapedArrayRef
     36 from jax_triton.triton_lib import get_triton_type
     37 import jax.numpy as jnp

ImportError: cannot import name 'ShapedArrayRef' from 'jax._src.state' (/usr/local/lib/python3.10/dist-packages/jax/_src/state/__init__.py)

It appears that the deprecation of this method in Jax version 0.4.12 breaks the package initialization, as far as I can test.

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

No branches or pull requests

1 participant