MCPcopy Create free account
hub / github.com/geekcomputers/Python / step

Method step

ML/src/python/neuralforge/optim/schedulers.py:20–24  ·  view source on GitHub ↗
(self, epoch=None)

Source from the content-addressed store, hash-verified

18 return self.base_lrs
19
20 def step(self, epoch=None):
21 if self.last_epoch < self.warmup_epochs:
22 super().step(epoch)
23 elif self.base_scheduler is not None:
24 self.base_scheduler.step(epoch)
25
26class CosineAnnealingWarmRestarts(_LRScheduler):
27 def __init__(self, optimizer, T_0, T_mult=1, eta_min=0, last_epoch=-1):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected