Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

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.