Does Netket support involving vjp function model construction? #1676
-
When constructing probability for metropolis sampling, I used a custom_vjp function. However, when optimizing parameters, error occured:
It seems that jvp function is expected. Does Netket support involving vjp function in autodiff calculation? |
Beta Was this translation helpful? Give feedback.
Answered by
PhilipVinc
Dec 21, 2023
Replies: 1 comment
-
You are using SR with QGTOnTheFly that requires forward mode differentiation. Use another QGT implementation based on backward mode AD such as QGTJacobian |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
miaoL1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are using SR with QGTOnTheFly that requires forward mode differentiation.
Use another QGT implementation based on backward mode AD such as QGTJacobian