Hi,
thank you for the implementation. Unfortunately I am having some problems with one variable that is not defined not sure what it's supposed to be:
File "adahessian.py", line 77, in set_hessian h_zs = torch.autograd.grad(grads, params, grad_outputs=z, only_inputs=True, retain_graph=False) UnboundLocalError: local variable 'z' referenced before assignment
Hi, thank you for the implementation. Unfortunately I am having some problems with one variable that is not defined not sure what it's supposed to be:
File "adahessian.py", line 77, in set_hessian h_zs = torch.autograd.grad(grads, params, grad_outputs=z, only_inputs=True, retain_graph=False) UnboundLocalError: local variable 'z' referenced before assignment