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

Method create_lars_inputs

caffe2/python/optimizer.py:285–291  ·  view source on GitHub ↗
(self, param_init_net, weight_decay, trust, lr_max)

Source from the content-addressed store, hash-verified

283 )
284
285 def create_lars_inputs(self, param_init_net, weight_decay, trust, lr_max):
286 wd = param_init_net.ConstantFill(
287 [], "weight_decay", shape=[1], value=weight_decay
288 )
289 trust = param_init_net.ConstantFill([], "trust", shape=[1], value=trust)
290 lr_max = param_init_net.ConstantFill([], "lr_max", shape=[1], value=lr_max)
291 return wd, trust, lr_max
292
293
294class SgdOptimizer(Optimizer):

Callers 4

_runMethod · 0.80
_runMethod · 0.80
_runMethod · 0.80
_runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected