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

Function list_devices

tensorflow/python/eager/context.py:1684–1691  ·  view source on GitHub ↗

List the names of the available devices. Returns: Names of the available devices, as a `list`.

()

Source from the content-addressed store, hash-verified

1682
1683@tf_export("config.experimental_list_devices")
1684def list_devices():
1685 """List the names of the available devices.
1686
1687 Returns:
1688 Names of the available devices, as a `list`.
1689 """
1690 ensure_initialized()
1691 return context().devices()
1692
1693
1694@tf_export("debugging.get_log_device_placement")

Callers

nothing calls this directly

Calls 3

ensure_initializedFunction · 0.85
contextFunction · 0.85
devicesMethod · 0.45

Tested by

no test coverage detected