TensorFlow 2.0 Beta is available Learn more

tf.test.gpu_device_name

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
tf.test.gpu_device_name()

Defined in python/framework/test_util.py.