-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Can't use Equinox inside term
#446
Comments
Thank you @lockwo for the help! By the way, I'd be very happy to take a pull request improving this error message, describing whatever you think most needs adding! (It's new to me that this is apparently 'classic' -- probably that's because I'm used to navigating this library in a rather different way... :D ) |
Thanks for the help. I am very new to JAX and Diffrax, so I had a bit of problems debugging it because I usually step into my programs with a debugger but I'm not used to the functional and JIT nature of JAX yet. I realized pretty quickly that there is a "hidden error" behind this error message but I just couldn't figure out what and how to access it but that's mainly due to inexperience. Thanks a lot |
Maybe classic is a strong word haha, but I've been doing a lot of 1D systems this past week so I saw it a lot when I messed up how I squeezed or unsqueezed things and got used to seeing the message. I will see about adding a more clear error statement about shaping when possible. |
I have this code solving a PDE. If I set the force inside
equations
to a numerical value, everything is fine but if I try to replace it with a neural network, I get:Note the breakpoint I did and the type.
The type is what is expected. So what exactly am I doing wrong?
Code:
The text was updated successfully, but these errors were encountered: