Using value_and_grad and jvp in same code snippet #11710
Unanswered
kopanicakova
asked this question in
Q&A
Replies: 1 comment
-
Figured it out - unfortunately, I have used name "grad" for output of value_and_grad function.... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am very new to JAX. My goal is to implement a Newton optimizer using JAX. So, I would like to use JAX to compute the gradient and evaluate the hessian-vector application of my function. I can perform both operations separately. However, if I use both features in the same code, I am getting the error "TypeError: 'DeviceArray' object is not callable". Can anybody point me to the problem? Below, you can find my current snippet:
Beta Was this translation helpful? Give feedback.
All reactions