MCPcopy Create free account
hub / github.com/apache/singa / setUp

Method setUp

test/python/test_model.py:414–419  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

412 return out, loss
413
414 def setUp(self):
415 self.sgd = opt.SGD(lr=0.05)
416
417 cpu_dev.ResetGraph()
418 if singa_api.USE_CUDA:
419 gpu_dev.ResetGraph()
420
421 def tearDown(self):
422 cpu_dev.ResetGraph()

Callers

nothing calls this directly

Calls 1

ResetGraphMethod · 0.80

Tested by

no test coverage detected