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

The example on README seems unable to work #13

Open
pollycoder opened this issue Nov 13, 2024 · 0 comments
Open

The example on README seems unable to work #13

pollycoder opened this issue Nov 13, 2024 · 0 comments

Comments

@pollycoder
Copy link

I just tried the example on your README and now it shows the error below:

Traceback (most recent call last):
  File "/Users/polly/Desktop/SURF/surf-neural-astro/test_autofd.py", line 17, in <module>
    dFdf = jax.grad(F)(f)
           ^^^^^^^^^^^^^^
TypeError: Argument 'f[] -> f[]' of type <class 'autofd.general_array.function'> is not a valid JAX type.
--------------------
For simplicity, JAX has removed its internal frames from the traceback of the following exception. Set JAX_TRACEBACK_FILTERING=off to include these.

Could you please tell me how to fix this bug ? Thanks a lot !

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