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
The method get_params_grad pot 0.0 when params.grad is None, but it should be torch.tensor(0.0), because when it will be called the torch method torch.autograd.grad it will raise an error, because a float does not have `.is_nested' method defined.
Let me know if you are facing the same problem.
The text was updated successfully, but these errors were encountered:
The method
get_params_grad
pot 0.0 whenparams.grad is None
, but it should betorch.tensor(0.0)
, because when it will be called the torch methodtorch.autograd.grad
it will raise an error, because afloat
does not have `.is_nested' method defined.Let me know if you are facing the same problem.
The text was updated successfully, but these errors were encountered: