Join TensorFlow at Google I/O, May 11-12 Register now

tf.test.is_built_with_rocm

TensorFlow 1 version View source on GitHub

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