tf.test.gpu_device_name

View source on GitHub

Returns the name of a GPU device if available or the empty string.

tf.test.gpu_device_name()