TensorFlow 2.0 Beta is available Learn more

tf.config.experimental_list_devices

List the names of the available devices.

Aliases:

  • tf.compat.v1.config.experimental_list_devices
  • tf.compat.v2.config.experimental_list_devices
  • tf.config.experimental_list_devices
  • tf.contrib.eager.list_devices
tf.config.experimental_list_devices()
View source on GitHub

Returns:

Names of the available devices, as a list.