Ich bin neu bei TensorFlow. Ich habe es kürzlich installiert (Windows-CPU-Version) und die folgende Meldung erhalten:
Tensorflow-1.4.0 Tensorflow-Tensorboard-0.4.0rc2 erfolgreich installiert
Dann, als ich versuchte zu rennen
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()
(was ich über https://github.com/tensorflow/tensorflow gefunden habe )
Ich habe folgende Nachricht erhalten:
2017-11-02 01: 56: 21.698935: IC: \ tf_jenkins \ home \ workspace \ rel-win \ M \ windows \ PY \ 36 \ tensorflow \ core \ platform \ cpu_feature_guard.cc: 137] Ihre CPU unterstützt Anweisungen dazu TensorFlow-Binärdatei wurde nicht für die Verwendung kompiliert: AVX AVX2
Aber als ich rannte
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
Es lief wie es sollte und gab aus Hello, TensorFlow!, was darauf hinweist, dass die Installation tatsächlich erfolgreich war, aber es gibt noch etwas, das nicht stimmt.
Wissen Sie, wo das Problem liegt und wie Sie es beheben können?
>>> sess = tf.Session() 2017-11-05 18:02:44.670825: I C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\ 35\tensorflow\core\platform\cpu_feature_guard.cc:137] Your CPU supports instruct ions that this TensorFlow binary was not compiled to use: AVX AVX2
Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2.