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 75e1c6d commit bd20f5bCopy full SHA for bd20f5b
pytorch_optimizer/__init__.py
@@ -57,7 +57,7 @@
57
OPTIMIZERS: Dict[str, Optimizer] = {str(optimizer.__name__).lower(): optimizer for optimizer in OPTIMIZER_LIST}
58
59
60
-def load_optimizer(optimizer: str) -> OPTIMIZERS: # pylint: disable=R0911
+def load_optimizer(optimizer: str) -> Optimizer: # pylint: disable=R0911
61
optimizer: str = optimizer.lower()
62
63
if optimizer not in OPTIMIZERS:
0 commit comments