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

Method build_optimizer

caffe2/python/optimizer_test.py:26–28  ·  view source on GitHub ↗
(self, model, **kwargs)

Source from the content-addressed store, hash-verified

24 raise unittest.SkipTest("no sparse support")
25
26 def build_optimizer(self, model, **kwargs):
27 self._skip_gpu = False
28 return build_sgd(model, base_learning_rate=0.1, lars=0.5, **kwargs)
29
30 def check_optimizer(self, optimizer):
31 self.assertTrue(optimizer.get_auxiliary_parameters().shared)

Callers

nothing calls this directly

Calls 1

build_sgdFunction · 0.90

Tested by

no test coverage detected