MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _dev

Method _dev

tensorflow/contrib/eager/python/saver_test.py:37–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35class SaverTest(test.TestCase):
36
37 def _dev(self):
38 return '/device:GPU:0' if context.num_gpus() else '/device:CPU:0'
39
40 def testBasics(self):
41 with ops.device(self._dev()):

Callers 6

testBasicsMethod · 0.95
testSameObjectOKMethod · 0.95
testSaveByDictMethod · 0.95
testRestoreOnCreateMethod · 0.95
testRestoreNotFoundMethod · 0.95

Calls 1

num_gpusMethod · 0.45

Tested by

no test coverage detected