Skip to content

Commit 7588ee2

Browse files
committed
[skip ci] docs: comment about possible memory leak
1 parent 3c7a89f commit 7588ee2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pytorch_optimizer/adahessian.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ def set_hessian(self):
147147
- 1.0
148148
for p in params
149149
]
150+
# note that, possible memory leak due to retrain_graph=True
150151
h_zs = torch.autograd.grad(
151152
grads,
152153
params,

0 commit comments

Comments
 (0)