Closed YoungseogChung closed 11 months ago
Previously, hessian is set to True by default, but I changed the default value to False in one of my recent commits. So, this is an expected behavior.
I see. Shouldn't the precondition function still handle the case where hessian is not logged? E.g. check if it's emtpy and exit
That's a good point. If you can add error handling for this, that would be great.
When logging over the dataset as
with analog(data_id=data_id, log=["grad"], save=True):
instead ofwith analog(data_id=data_id, log=["grad"], hessian=True, save=True):
, theprecondition
function ofInfluenceFunction
fails sincemodule_eigvec["backward"]
is empty but it still callsmodule_eigvec["backward"].t()
in line 25 ofinfluence_function.py
: