Skip to content

Commit f0496a4

Browse files
committed
update: test_sam_optimizers_with_closure
1 parent 8238522 commit f0496a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_optimizers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def test_sam_optimizers_with_closure(adaptive, optimizer_sam_config):
107107
optimizer_class, config, iterations = optimizer_sam_config
108108

109109
optimizer_name: str = optimizer_class.__name__
110-
if (optimizer_name == 'Shampoo') or (optimizer_name == 'Adai'):
110+
if optimizer_name in ('Shampoo', 'Adai'):
111111
pytest.skip(f'skip {optimizer_name}')
112112

113113
optimizer = SAM(model.parameters(), optimizer_class, **config, adaptive=adaptive)

0 commit comments

Comments
 (0)