hi, this used to work until last Friday before the pytorch 1.10 was updated. What I am doing here is assigning dy as param.grad in LBFGS inside a closure. I am curious why it started not working after the new pytorch version.

Screen Shot 2021-12-07 at 12.41.51 AM1044×704 75.8 KB