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

jax.numpy.DeviceArray no longer valid #71

Closed
zhengp0 opened this issue Aug 8, 2023 · 1 comment
Closed

jax.numpy.DeviceArray no longer valid #71

zhengp0 opened this issue Aug 8, 2023 · 1 comment

Comments

@zhengp0
Copy link
Member

zhengp0 commented Aug 8, 2023

The new version of jax==0.4.14

from jax.numpy import DeviceArray

will give error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'DeviceArray' from 'jax.numpy'

Suggestions

  1. Fix version of jax and jaxlib.
  2. Update the typing to from jaxlib.xla_extension import ArrayImpl

Edit:
Please refer to this post
https://jax.readthedocs.io/en/latest/jax_array_migration.html

@zhengp0
Copy link
Member Author

zhengp0 commented Mar 27, 2024

This issue has been addressed in #75 and #76

@zhengp0 zhengp0 closed this as completed Mar 27, 2024
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