Closed shivram1987 closed 4 years ago
Please replace state['previous_grad'] = grad with state['previous_grad'] = grad.clone() in line 117.
Thanks! Would you like to submit PR?
Fixed via https://github.com/jettify/pytorch-optimizer/pull/57
Please submit PR...
@shivram1987 no problem, just wanted to check if you want to do that yourself :) @lucidrains helped with PR.
Thanks for DiffGrad!
Please replace state['previous_grad'] = grad with state['previous_grad'] = grad.clone() in line 117.