# tf.contrib.eager.num_gpus

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/eager/context.py#L1817-L1823) |

Get the number of available GPU devices.

    tf.contrib.eager.num_gpus()

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The number of available GPU devices. ||

<br />