-
Notifications
You must be signed in to change notification settings - Fork 352
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
Make JAX an optional dependency #2281
Comments
I would find this very helpful.
I try making jax=0.4.13 but its keeps getting replaced with v0.4.20 because it is required by dependencies in pertpy and also scvi-tools is a requirement for pertpy.
Thanks! |
Hi, sorry that you're running into this issue - we're working on making this available in #2318 as part of our next scvi-tools release (v1.1). However, I'm unable to reproduce the |
I am running the same issue. My Jax version is 0.4.23ImportError Traceback (most recent call last) File ~/mambaforge/mambaforge/envs/scvi/lib/python3.9/site-packages/scvi/init.py:10 File ~/mambaforge/mambaforge/envs/scvi/lib/python3.9/site-packages/scvi/model/init.py:2 File ~/mambaforge/mambaforge/envs/scvi/lib/python3.9/site-packages/scvi/model/_amortizedlda.py:14 File ~/mambaforge/mambaforge/envs/scvi/lib/python3.9/site-packages/scvi/module/init.py:4 File ~/mambaforge/mambaforge/envs/scvi/lib/python3.9/site-packages/scvi/module/_jaxvae.py:7 File ~/mambaforge/mambaforge/envs/scvi/lib/python3.9/site-packages/flax/init.py:20 File ~/mambaforge/mambaforge/envs/scvi/lib/python3.9/site-packages/flax/linen/init.py:47 File ~/mambaforge/mambaforge/envs/scvi/lib/python3.9/site-packages/flax/linen/attention.py:22 File ~/mambaforge/mambaforge/envs/scvi/lib/python3.9/site-packages/flax/linen/linear.py:30 ImportError: cannot import name 'ShapedArray' from 'jax' |
It was fixed by install flax see #2216 |
No description provided.
The text was updated successfully, but these errors were encountered: