Missed TensorFlow World? Check out the recap. Learn more

tf.test.is_built_with_gpu_support

View source on GitHub

Returns whether TensorFlow was built with GPU (i.e. CUDA or ROCm) support.

Aliases:

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