Skip to content

Commit fe3b5d9

Browse files
committed
update: adamp to adamw
1 parent 71b8762 commit fe3b5d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_optimizer_parameters.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_came_parameters():
5252

5353

5454
def test_pcgrad_parameters():
55-
opt = load_optimizer('adamp')([simple_parameter()])
55+
opt = load_optimizer('adamw')([simple_parameter()])
5656

5757
# test reduction
5858
for reduction in ['mean', 'sum']:
@@ -64,16 +64,16 @@ def test_pcgrad_parameters():
6464

6565
def test_sam_parameters():
6666
with pytest.raises(ValueError):
67-
SAM(None, load_optimizer('adamp'), rho=-0.1)
67+
SAM(None, load_optimizer('adamw'), rho=-0.1)
6868

6969

7070
def test_wsam_parameters():
7171
with pytest.raises(ValueError):
72-
WSAM(None, None, load_optimizer('adamp'), rho=-0.1)
72+
WSAM(None, None, load_optimizer('adamw'), rho=-0.1)
7373

7474

7575
def test_lookahead_parameters():
76-
optimizer = load_optimizer('adamp')([simple_parameter()])
76+
optimizer = load_optimizer('adamw')([simple_parameter()])
7777

7878
for pullback_momentum in PULLBACK_MOMENTUM:
7979
opt = Lookahead(optimizer, pullback_momentum=pullback_momentum)

0 commit comments

Comments
 (0)