TensorFlow 2.0 Beta is available Learn more

tf.test.is_built_with_cuda

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

Aliases:

  • tf.compat.v1.test.is_built_with_cuda
  • tf.compat.v2.test.is_built_with_cuda
  • tf.test.is_built_with_cuda
tf.test.is_built_with_cuda()
View source on GitHub