Skip to content

Commit 39fd43e

Browse files
committed
update: test_scion_lmo_types
1 parent 770377c commit 39fd43e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_optimizers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,16 +1007,16 @@ def test_scion_lmo_types():
10071007
norm.init(grad)
10081008
norm.lmo(grad)
10091009

1010-
norm = build_lmo_norm(norm_type=2, max_scale=True)
1011-
norm.init(grad_2d)
1012-
norm.lmo(grad_2d)
1013-
10141010
with pytest.raises(NotImplementedError):
10151011
norm.init(grad_5d)
10161012

10171013
with pytest.raises(NotImplementedError):
10181014
norm.lmo(grad_5d)
10191015

1016+
norm = build_lmo_norm(norm_type=2, max_scale=True)
1017+
norm.init(grad_2d)
1018+
norm.lmo(grad_2d)
1019+
10201020
norm = build_lmo_norm(norm_type=4, zero_init=True)
10211021
norm.init(grad_2d)
10221022
norm.lmo(grad_2d)

0 commit comments

Comments
 (0)