Skip to content

Commit 8a99772

Browse files
committed
update: SPAM optimizer
1 parent 03f423e commit 8a99772

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pytorch_optimizer/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
SGDW,
6262
SM3,
6363
SOAP,
64+
SPAM,
6465
SRMM,
6566
SWATS,
6667
TRAC,

pytorch_optimizer/optimizer/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
from pytorch_optimizer.optimizer.sm3 import SM3
8484
from pytorch_optimizer.optimizer.soap import SOAP
8585
from pytorch_optimizer.optimizer.sophia import SophiaH
86+
from pytorch_optimizer.optimizer.spam import SPAM
8687
from pytorch_optimizer.optimizer.srmm import SRMM
8788
from pytorch_optimizer.optimizer.swats import SWATS
8889
from pytorch_optimizer.optimizer.tiger import Tiger
@@ -286,6 +287,7 @@ def load_optimizer(optimizer: str) -> OPTIMIZER:
286287
MARS,
287288
SGDSaI,
288289
Grams,
290+
SPAM,
289291
Ranger25,
290292
]
291293
OPTIMIZERS: Dict[str, OPTIMIZER] = {str(optimizer.__name__).lower(): optimizer for optimizer in OPTIMIZER_LIST}

0 commit comments

Comments
 (0)