RSVP for your your local TensorFlow Everywhere event today!

tf.test.is_built_with_cuda

TensorFlow 2 version View source on GitHub

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