您的CPU支持关于此TensorFlow二进制文件未编译用于使用的指令:AVXAVX 2
成功安装了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)42sess.close()
2017-11-02 01:56:21.698935:C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:137]您的cpu支持这样的指令,即这个TensorFlow二进制文件没有编译以使用:avx 2。
import tensorflow as tf hello = tf.constant('Hello, TensorFlow!')sess = tf.Session()print(sess.run(hello))
Hello, TensorFlow!
莫回无