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

Method build_optimizer

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

Source from the content-addressed store, hash-verified

209
210class TestWngrad(OptimizerTestBase, LRModificationTestBase, TestCase):
211 def build_optimizer(self, model, **kwargs):
212 self._skip_gpu = True
213 return build_wngrad(model, base_learning_rate=25.0, **kwargs)
214
215 def check_optimizer(self, optimizer):
216 self.assertFalse(optimizer.get_auxiliary_parameters().shared)

Callers

nothing calls this directly

Calls 1

build_wngradFunction · 0.90

Tested by

no test coverage detected