Skip to content

Commit 416d91b

Browse files
committed
update: test_reset
1 parent 8fa4cc4 commit 416d91b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_optimizers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,13 +462,13 @@ def test_swats_sgd_phase(environment):
462462
opt.step()
463463

464464

465-
@pytest.mark.parametrize('optimizer_config', OPTIMIZERS + ADANORM_SUPPORTED_OPTIMIZERS, ids=ids)
465+
@pytest.mark.parametrize(
466+
'optimizer_config', OPTIMIZERS + ADANORM_SUPPORTED_OPTIMIZERS + [(BSAM, {'num_data': 1}, 1)], ids=ids
467+
)
466468
def test_reset(optimizer_config):
467469
optimizer_class, config, _ = optimizer_config
468470
if optimizer_class.__name__ == 'Ranger21':
469471
config.update({'num_iterations': 1})
470-
elif optimizer_class.__name__ == 'BSAM':
471-
config.update({'num_data': 1})
472472

473473
optimizer = optimizer_class([simple_parameter()], **config)
474474
optimizer.reset()

0 commit comments

Comments
 (0)