Skip to content

Commit e89c146

Browse files
committed
update: test cases
1 parent a628749 commit e89c146

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,4 +551,5 @@
551551
(AdEMAMix, {'lr': 1e0, 'cautious': True}, 2),
552552
(LaProp, {'lr': 1e0, 'cautious': True}, 2),
553553
(AdamP, {'lr': 1e0, 'cautious': True}, 2),
554+
(ADOPT, {'lr': 1e1, 'cautious': True}, 3),
554555
]

tests/test_optimizers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def test_adanorm_optimizer(optimizer_config, environment):
298298

299299

300300
@pytest.mark.parametrize('optimizer_config', ADANORM_SUPPORTED_OPTIMIZERS, ids=ids)
301-
def test_adanorm_condition(optimizer_config):
301+
def test_adanorm_variant(optimizer_config):
302302
param = simple_parameter(True)
303303
param.grad = torch.ones(1, 1)
304304

@@ -312,7 +312,7 @@ def test_adanorm_condition(optimizer_config):
312312

313313

314314
@pytest.mark.parametrize('optimizer_config', ADAMD_SUPPORTED_OPTIMIZERS, ids=ids)
315-
def test_adamd_optimizers(optimizer_config, environment):
315+
def test_adamd_variant(optimizer_config, environment):
316316
(x_data, y_data), model, loss_fn = environment
317317

318318
optimizer_class, config, num_iterations = optimizer_config
@@ -337,7 +337,7 @@ def test_adamd_optimizers(optimizer_config, environment):
337337

338338

339339
@pytest.mark.parametrize('optimizer_config', COPT_SUPPORTED_OPTIMIZERS, ids=ids)
340-
def test_copt_optimizers(optimizer_config, environment):
340+
def test_cautious_variant(optimizer_config, environment):
341341
(x_data, y_data), model, loss_fn = environment
342342

343343
optimizer_class, config, num_iterations = optimizer_config

0 commit comments

Comments
 (0)