Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tf.test.is_built_with_cuda

TensorFlow 1 version View source on GitHub

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

tf.test.is_built_with_cuda()