Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ num_gpus
Method
num_gpus
tensorflow/python/distribute/hvd_strategy.py:163–166 ·
view source on GitHub ↗
r'''Number of GPUs.
(self)
Source
from the content-addressed store, hash-verified
161
162
@property
163
def
num_gpus(self):
164
r
''
&
#x27;Number of GPUs.
165
''
&
#x27;
166
return
self._num_gpus
167
168
def
_update(self, task_type=None, task_id=None, cluster_spec=None,
169
num_gpus=None):
Callers
15
testMirroredContainer
Method · 0.45
testProperties
Method · 0.45
testSaveAndRestoreMirroredOneGraph
Method · 0.45
testSaveMirroredRestoreMirrored
Method · 0.45
testSaveMirroredRestoreNormal
Method · 0.45
testSaveNormalRestoreMirrored
Method · 0.45
testProperties
Method · 0.45
testSaveAndRestoreReplicaLocalMeanOneGraph
Method · 0.45
should_execute_combination
Method · 0.45
test_num_replicas_in_sync
Method · 0.45
testMakeInputFnIteratorWithDataset
Method · 0.45
testMakeInputFnIteratorWithCallable
Method · 0.45
Calls
no outgoing calls
Tested by
15
testMirroredContainer
Method · 0.36
testProperties
Method · 0.36
testSaveAndRestoreMirroredOneGraph
Method · 0.36
testSaveMirroredRestoreMirrored
Method · 0.36
testSaveMirroredRestoreNormal
Method · 0.36
testSaveNormalRestoreMirrored
Method · 0.36
testProperties
Method · 0.36
testSaveAndRestoreReplicaLocalMeanOneGraph
Method · 0.36
test_num_replicas_in_sync
Method · 0.36
testMakeInputFnIteratorWithDataset
Method · 0.36
testMakeInputFnIteratorWithCallable
Method · 0.36
_make_cross_device_ops
Method · 0.36