Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
35
class
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
testBasics
Method · 0.95
testSameNameNoClobbering
Method · 0.95
testSameObjectOK
Method · 0.95
testSaveByDict
Method · 0.95
testRestoreOnCreate
Method · 0.95
testRestoreNotFound
Method · 0.95
Calls
1
num_gpus
Method · 0.45
Tested by
no test coverage detected