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 a33f382 commit 6298567Copy full SHA for 6298567
pytorch_optimizer/types.py
@@ -1,6 +1,10 @@
1
-from typing import Any, Callable, Dict, Optional, Tuple
+from typing import Any, Callable, Dict, Iterable, Optional, Tuple, Union
2
+
3
+import torch
4
5
CLOSURE = Optional[Callable[[], float]]
6
LOSS = Optional[float]
7
BETAS = Tuple[float, float]
8
DEFAULT_PARAMETERS = Dict[str, Any]
9
+PARAMS = Union[Iterable[torch.Tensor], Iterable[Dict[str, Any]]]
10
+STATE = Dict[str, Any]
0 commit comments