Skip to content

chore(optim): wrap torch.autograd.grad() with torch.enable_grad() context#220

Open
XuehaiPan wants to merge 2 commits into
metaopt:mainfrom
XuehaiPan:enable-grad
Open

chore(optim): wrap torch.autograd.grad() with torch.enable_grad() context#220
XuehaiPan wants to merge 2 commits into
metaopt:mainfrom
XuehaiPan:enable-grad

fix(optim): move `apply_updates` in grad context

5f9b918
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch succeeded Jun 23, 2026 in 0s

100.00% of diff hit (target 100.00%)

View this Pull Request on Codecov

100.00% of diff hit (target 100.00%)