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

Method build_optimizer

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

Source from the content-addressed store, hash-verified

301
302class TestSparseRAdam(OptimizerTestBase, LRModificationTestBase, TestCase):
303 def build_optimizer(self, model, **kwargs):
304 self._skip_gpu = True
305 return build_adam(model, base_learning_rate=0.1, enableRAdam=True, **kwargs)
306
307 def check_optimizer(self, optimizer):
308 self.assertTrue(optimizer.get_auxiliary_parameters().shared)

Callers

nothing calls this directly

Calls 1

build_adamFunction · 0.90

Tested by

no test coverage detected