Skip to content

Commit 0b960fa

Browse files
committed
update: test_create_optimizer
1 parent a2d474d commit 0b960fa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_create_optimizer.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from pytorch_optimizer import create_optimizer
2+
from tests.utils import LogisticRegression
3+
4+
5+
def test_create_optimizer():
6+
model = LogisticRegression()
7+
8+
optimizer = create_optimizer(model, 'adamp', lr=1e-2, weight_decay=1e-3, use_gc=True)
9+
optimizer = create_optimizer(model, 'alig', lr=1e-2)

0 commit comments

Comments
 (0)