MCPcopy Create free account
hub / github.com/apple/ml-pointersect / get_current_lr

Method get_current_lr

cdslib/core/optim/tf_optim.py:157–159  ·  view source on GitHub ↗

Get the current learning rate.

(self)

Source from the content-addressed store, hash-verified

155 return self.factor * (self.model_size ** (-0.5) * min(step ** (-0.5), step * self.warmup ** (-1.5)))
156
157 def get_current_lr(self):
158 """Get the current learning rate."""
159 return self._rate
160
161 def unscale(self, scaler=None):
162 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected