Skip to content

Commit 1a0786b

Browse files
committed
update: PARAMETERS to Optional
1 parent 75dee3a commit 1a0786b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_optimizer/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
LOSS = Optional[float]
77
BETAS = Tuple[float, float]
88
DEFAULTS = Dict[str, Any]
9-
PARAMETERS = Union[Iterable[Dict[str, Any]], Iterable[torch.Tensor]]
9+
PARAMETERS = Optional[Union[Iterable[Dict[str, Any]], Iterable[torch.Tensor]]]
1010
STATE = Dict[str, Any]
1111
BUFFER = List[List[Optional[torch.Tensor]]]

0 commit comments

Comments
 (0)