Missed TensorFlow World? Check out the recap. Learn more

tf.contrib.eager.num_gpus

View source on GitHub

Get the number of available GPU devices.

tf.contrib.eager.num_gpus()

Returns:

The number of available GPU devices.