验证TensorFlow-gpu是否安装好: import tensorflow as tf tf.test.is_gpu_available() 或者 tf.test.is_built_with_cuda() (推荐)