(self)
| 181 | super().__init__(optimizer, last_epoch, verbose) |
| 182 | |
| 183 | def get_lr(self): |
| 184 | if not self._get_lr_called_within_step: |
| 185 | warnings.warn("To get the last learning rate computed by the scheduler, " |
| 186 | "please use `get_last_lr()`.") |
| 187 | |
| 188 | return self._get_closed_form_lr() |
| 189 | |
| 190 | def _get_closed_form_lr(self): |
| 191 | warmup = 1 - self.warmup ** (self.last_epoch + 1) |
nothing calls this directly
no test coverage detected