Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

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.