Method
__init__
(self, optimizer, warmup=0., last_epoch=-1, verbose=False)
Source from the content-addressed store, hash-verified
| 248 | """ |
| 249 | |
| 250 | def __init__(self, optimizer, warmup=0., last_epoch=-1, verbose=False): |
| 251 | if not 0. <= warmup < 1: |
| 252 | raise ValueError('Invalid value for warmup') |
| 253 | self.warmup = warmup |
| 254 | super().__init__(optimizer, last_epoch, verbose) |
| 255 | |
| 256 | def get_lr(self): |
| 257 | if not self._get_lr_called_within_step: |
Callers
nothing calls this directly
Tested by
no test coverage detected