MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / __init__

Method __init__

schedulers/multisteplr.py:45–48  ·  view source on GitHub ↗
(self, optimizer, milestones, gamma=0.1, last_epoch=-1, verbose=False)

Source from the content-addressed store, hash-verified

43 """
44
45 def __init__(self, optimizer, milestones, gamma=0.1, last_epoch=-1, verbose=False):
46 self.milestones = Counter(milestones)
47 self.gamma = gamma
48 super(MultiStepLR, self).__init__(optimizer, last_epoch, verbose)
49
50 def get_lr(self):
51 if not self._get_lr_called_within_step:

Callers

nothing calls this directly

Calls 1

CounterEnum · 0.85

Tested by

no test coverage detected