MCPcopy 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
48def 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

Calls 2

num_available_gpusFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected