tf.keras.distribution.list_devices

Return all the available devices based on the device type.

device_type string, one of "cpu", "gpu" or "tpu". Defaults to "gpu" or "tpu" if available when device_type is not provided. Otherwise will return the "cpu" devices.

List of devices that are available for distribute computation.