Missed TensorFlow World? Check out the recap. Learn more

tf.test.gpu_device_name

TensorFlow 2.0 version View source on GitHub

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

Aliases:

  • tf.compat.v1.test.gpu_device_name
  • tf.compat.v2.test.gpu_device_name
tf.test.gpu_device_name()