(self)
| 254 | super().__init__(optimizer, last_epoch, verbose) |
| 255 | |
| 256 | def get_lr(self): |
| 257 | if not self._get_lr_called_within_step: |
| 258 | warnings.warn("To get the last learning rate computed by the scheduler, " |
| 259 | "please use `get_last_lr()`.") |
| 260 | |
| 261 | return self._get_closed_form_lr() |
| 262 | |
| 263 | def _get_closed_form_lr(self): |
| 264 | warmup = 1 - self.warmup ** (self.last_epoch + 1) |
nothing calls this directly
no test coverage detected