-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
New to JAX, grad(f) throwing AssertionError with no message #2519
Comments
Thanks for raising this! This is a perfect place to post :) I think expm differentiation is a WIP (see #2062, #1635, #1940) and unfortunately its current state raises this error. The place to track progress is #2062 but that's stalled out, probably because we JAX devs have dropped the ball on it. Could you check out the code in #2062 and see if your code works there? |
Thanks for the response! I've checked out the code from #2062 . Not sure if I'm making a mistake installing things; I've checked out the repo, and done:
while in the folder I've checked out the code. Now when I do:
I get the error:
|
What version of |
That's my guess too. |
Yep I have the latest one. I just tried creating a new conda environment and installing, but am getting the same error. The steps I did were:
When |
I think I'll close this for now as I believe I may be able to work my way around this. Thanks! |
Hi,
I hope this is the correct place to post this: I'm new to JAX and am getting an error when trying to use
grad
. It seems like I am doing things correctly: the functiong
I define seems to be evaluating to the correct values, and when I callgrad(g)
no errors are thrown. However, if I try to evaluategrad(g)
on an input, I get anAssertionError
with no message. Not sure if I'm trying to use functions that are not automatically differentiable?My code is:
Calling
g
returns correct output (expected output is 1):Attempting to call
grad(g)
(expected output is 0):throws error:
Note I have not missed anything, this is the full output (there is no message with the
AssertionError
).Thank you!
The text was updated successfully, but these errors were encountered: