Skip to content

Commit 69ca1a0

Browse files
committed
update: test_sam_optimizers
1 parent 80bd320 commit 69ca1a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_optimizers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ def test_sam_optimizers(adaptive, optimizer_sam_config):
181181

182182
optimizer_class, config, iterations = optimizer_sam_config
183183
optimizer = SAM(model.parameters(), optimizer_class, **config, adaptive=adaptive)
184+
optimizer.reset() # meaningless, but for coverage
184185

185186
init_loss, loss = np.inf, np.inf
186187
for _ in range(iterations):

0 commit comments

Comments
 (0)