Skip to content

Commit 6298567

Browse files
committed
update: PARAMS, STATE
1 parent a33f382 commit 6298567

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pytorch_optimizer/types.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
from typing import Any, Callable, Dict, Optional, Tuple
1+
from typing import Any, Callable, Dict, Iterable, Optional, Tuple, Union
2+
3+
import torch
24

35
CLOSURE = Optional[Callable[[], float]]
46
LOSS = Optional[float]
57
BETAS = Tuple[float, float]
68
DEFAULT_PARAMETERS = Dict[str, Any]
9+
PARAMS = Union[Iterable[torch.Tensor], Iterable[Dict[str, Any]]]
10+
STATE = Dict[str, Any]

0 commit comments

Comments
 (0)