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-md renderer not working #256

Open
exenGT opened this issue Feb 13, 2023 · 1 comment
Open

jax-md renderer not working #256

exenGT opened this issue Feb 13, 2023 · 1 comment

Comments

@exenGT
Copy link

exenGT commented Feb 13, 2023

Hi,

I tried running the notebook "NeurIPS Demo.ipynb" in Google Colab. The following section gives an error:

from jax_md.colab_tools import renderer

renderer.render(box_size, 
                {
                    'atom': renderer.Sphere(qm_positions[0]),
                }, 
                resolution=[400, 400])

output error message:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
[<ipython-input-5-92cadf3afdaa>](https://localhost:8080/#) in <module>
----> 1 from jax_md.colab_tools import renderer
      2 
      3 renderer.render(box_size, 
      4                 {
      5                     'atom': renderer.Sphere(qm_positions[0]),

12 frames
[/usr/local/lib/python3.8/dist-packages/jax/_src/core.py](https://localhost:8080/#) in <module>
   2085   return call_bind_continuation, top_trace, fun_, tracers, params
   2086 
-> 2087 @lu.transformation_with_aux
   2088 def process_env_traces_call(primitive: CallPrimitive, level: int,
   2089                             params_tuple: tuple, *args):

AttributeError: partially initialized module 'jax._src.linear_util' has no attribute 'transformation_with_aux' (most likely due to a circular import)

Thanks,
JW

@tzadouri
Copy link

Did you fix it?

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

2 participants