测试 GPU-tensorflow

AnacondaPrompt 输入

activate python35  #**python3.5版本环境,具体取决于自己命名情况,有的是 activate tensorflow
python   # 可执行阶段
import tensorflow as tf    # 测试
hello =tf.constant("Hello!TensorFlow")
sess = tf.Session()
print(sess.run(hello))

windows测试CPU-tensorflow和GPU-tensorflow是否成功安装

恭喜GPU版安装成功!!

测试CPU-tensorflow

activate python35 #**python3.5版本环境
python   # 可执行阶段
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))

windows测试CPU-tensorflow和GPU-tensorflow是否成功安装

恭喜CPU版安装成功!!

相关文章: