Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/DALI
/ available_gpus
Function
available_gpus
dali/test/python/test_utils_tensorflow.py:48–52 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
46
47
48
def
available_gpus():
49
devices = []
50
for
device_id in range(num_available_gpus()):
51
devices.append(
"/gpu:{0}"
.format(device_id))
52
return
devices
53
54
55
@contextmanager
Callers
2
test_keras_multi_gpu_mirrored_strategy
Method · 0.90
run_tf_dataset_multigpu_eager_mirrored_strategy
Function · 0.85
Calls
2
num_available_gpus
Function · 0.85
append
Method · 0.45
Tested by
no test coverage detected