我最近安装了tensorflow(Windows CPU版本),并收到以下消息:
已成功安装tensorflow-1.4.0 tensorflow-tensorboard-0.4.0rc2
然后当我试图逃跑的时候
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
sess.run(hello)
'Hello, TensorFlow!'
a = tf.constant(10)
b = tf.constant(32)
sess.run(a + b)
42
sess.close()
(这是我通过https://github.com/tensorflow/tensorflow找到的)
我收到了以下信息:
2017-11-02 01:56:21.698935:IC:\tf\u jenkins\home\workspace\rel win\M\windows\PY\36\tensorflow\core\platform\cpu\u feature\u guard.cc:137]您的CPU支持该TensorFlow二进制文件未编译为使用的指令:AVX AVX2
但是当我跑的时候
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
它正常运行,输出Hello, TensorFlow!
,这表明安装确实成功,但还有其他问题.
你知道问题是什么以及如何解决吗?