MCPcopy Index your code
hub / github.com/pytorch/pytorch / build_optimizer

Method build_optimizer

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

Source from the content-addressed store, hash-verified

50
51class TestSgd(OptimizerTestBase, LRModificationTestBase, TestCase):
52 def build_optimizer(self, model, **kwargs):
53 self._skip_gpu = False
54 return build_sgd(model, base_learning_rate=0.1, **kwargs)
55
56 def check_optimizer(self, optimizer):
57 self.assertTrue(optimizer.get_auxiliary_parameters().shared)

Callers 5

testDenseMethod · 0.45
testGPUDenseMethod · 0.45
testSparseMethod · 0.45
test_lr_injectionMethod · 0.45

Calls 1

build_sgdFunction · 0.90

Tested by

no test coverage detected