Skip to content

Commit 8880a5c

Browse files
authored
Update scheduler.py
1 parent 67b0b3d commit 8880a5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

timm/scheduler/scheduler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ def load_state_dict(self, state_dict: Dict[str, Any]) -> None:
6565
self.__dict__.update(state_dict)
6666

6767
@abc.abstractmethod
68-
def _get_lr(self, t: int) -> float:
68+
def _get_lr(self, t: int) -> List[float]:
6969
pass
7070

71-
def _get_values(self, t: int, on_epoch: bool = True) -> Optional[float]:
71+
def _get_values(self, t: int, on_epoch: bool = True) -> Optional[List[float]]:
7272
proceed = (on_epoch and self.t_in_epochs) or (not on_epoch and not self.t_in_epochs)
7373
if not proceed:
7474
return None

0 commit comments

Comments
 (0)