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

Method build_optimizer

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

Source from the content-addressed store, hash-verified

65 OptimizerTestBase, LRModificationTestBase, TestCase
66):
67 def build_optimizer(self, model, **kwargs):
68 self._skip_gpu = False
69 return build_multi_precision_sgd(
70 model, base_learning_rate=0.1, **kwargs
71 )
72
73 def check_optimizer(self, optimizer):
74 self.assertTrue(optimizer.get_auxiliary_parameters().shared)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected