tf.config.experimental_list_devices

View source on GitHub

List the names of the available devices.

Names of the available devices, as a list.