MCPcopy Create free account
hub / github.com/pytorch/pytorch / add_lr_multiplier

Method add_lr_multiplier

caffe2/python/optimizer.py:216–222  ·  view source on GitHub ↗

Set the global learning rate multiplier. If a multiplier already existed, this will overwrite the existing multiplier. The multiplier is used for all future calls to _run(), unless it is overwritten.

(self, lr_multiplier)

Source from the content-addressed store, hash-verified

214 return iteration
215
216 def add_lr_multiplier(self, lr_multiplier):
217 """
218 Set the global learning rate multiplier. If a multiplier already
219 existed, this will overwrite the existing multiplier. The multiplier is
220 used for all future calls to _run(), unless it is overwritten.
221 """
222 self._lr_multiplier = lr_multiplier
223
224 def _add_local_lr_multiplier(self, local_lr_multiplier, is_gpu_blob=False):
225 """

Callers 1

_buildFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected