Skip to content

Commit a6f2e5d

Browse files
committed
feature: PARAMS, PARAM_GROUP, PARAM_GROUPS
1 parent 6298567 commit a6f2e5d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pytorch_optimizer/types.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
from typing import Any, Callable, Dict, Iterable, Optional, Tuple, Union
1+
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Union
22

33
import torch
44

55
CLOSURE = Optional[Callable[[], float]]
66
LOSS = Optional[float]
77
BETAS = Tuple[float, float]
88
DEFAULT_PARAMETERS = Dict[str, Any]
9-
PARAMS = Union[Iterable[torch.Tensor], Iterable[Dict[str, Any]]]
9+
PARAMS = Union[Iterable[Dict[str, Any]], Iterable[torch.Tensor]]
10+
PARAM_GROUP = Dict
11+
PARAM_GROUPS = List[PARAM_GROUP]
1012
STATE = Dict[str, Any]

0 commit comments

Comments
 (0)