tf.test.is_built_with_cuda

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

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.test.is_built_with_cuda