You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of loss.backward(create_graph=True), which is called before hessian_vector_product use torch.autograd.grad(...). I am using Pytorch 1.10.0 and it works. (Also dont forget to filter out unused parameters-grads)
In hessian.py
When I tried to run the following code,
Hv = hessian_vector_product(gradsH, params, v)
The error comes out.
Is there any idea how to resolve this issue?
The text was updated successfully, but these errors were encountered: