tf.test.is_built_with_rocm

View source on GitHub

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

tf.test.is_built_with_rocm()