tf.test.is_built_with_cuda

tf.test.is_built_with_cuda()

Defined in tensorflow/python/platform/test.py.

Returns whether TensorFlow was built with CUDA (GPU) support.