We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2d474d commit 0b960faCopy full SHA for 0b960fa
tests/test_create_optimizer.py
@@ -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