MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ListDevices

Method ListDevices

tensorflow/python/grappler/cluster.py:71–76  ·  view source on GitHub ↗

Returns a list of available hardware devices.

(self)

Source from the content-addressed store, hash-verified

69 return self._tf_cluster
70
71 def ListDevices(self):
72 """Returns a list of available hardware devices."""
73 if self._tf_cluster is None:
74 return []
75 return [device_properties_pb2.NamedDevice.FromString(device)
76 for device in tf_cluster.TF_ListDevices(self._tf_cluster)]
77
78 def ListAvailableOps(self):
79 """Returns a list of all available operations (sorted alphabetically)."""

Callers 3

testBasicMethod · 0.95
testMNISTMethod · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by 2

testBasicMethod · 0.76
testMNISTMethod · 0.36