MCPcopy Create free account
hub / github.com/apache/singa / device_query

Function device_query

python/singa/device.py:54–56  ·  view source on GitHub ↗
(id, verbose=False)

Source from the content-addressed store, hash-verified

52
53
54def device_query(id, verbose=False):
55 assert singa.USE_CUDA, 'SINGA has not been compiled with CUDA enabled.'
56 return singa.Platform.DeviceQuery(id, verbose)
57
58
59def create_cpu_device():

Callers

nothing calls this directly

Calls 1

DeviceQueryMethod · 0.80

Tested by

no test coverage detected