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

Demo Imports Broken #21

Open
vikrammeyer opened this issue Nov 11, 2022 · 0 comments
Open

Demo Imports Broken #21

vikrammeyer opened this issue Nov 11, 2022 · 0 comments

Comments

@vikrammeyer
Copy link

vikrammeyer commented Nov 11, 2022

The demo notebook's imports do not work out of the box in Colab in their current state.
I get
ImportError: cannot import name 'stax' from 'jax.experimental' (/usr/local/lib/python3.7/dist-packages/jax/experimental/__init__.py)

and

ImportError: cannot import name 'optimizers' from 'jax.experimental' (/usr/local/lib/python3.7/dist-packages/jax/experimental/__init__.py)

Switching the stax and optimizers import to from jax.example_libraries import stax, optimizers fixed the import issues for me

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