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

Method _get_closed_form_lr

schedulers/multisteplr.py:60–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

58 for group in self.optimizer.param_groups]
59
60 def _get_closed_form_lr(self):
61 milestones = list(sorted(self.milestones.elements()))
62 return [base_lr * self.gamma ** bisect_right(milestones, self.last_epoch)
63 for base_lr in self.base_lrs]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected