TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.config.experimental_list_devices

TensorFlow 1 version View source on GitHub

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()

Returns:

Names of the available devices, as a list.