<filename>picmetric/scripts/check_gpu.py
import tensorflow as tf

if __name__ == "__main__":
    print(tf.test.is_gpu_available())
<filename>picmetric/scripts/check_gpu.py
import tensorflow as tf

if __name__ == "__main__":
    print(tf.test.is_gpu_available())