Missed TensorFlow World? Check out the recap. Learn more

tf.test.gpu_device_name

TensorFlow 1 version View source on GitHub

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

Aliases:

tf.test.gpu_device_name()