2017-11-02 6 views
0

EDIT: tensorflow-1.3.0-cp36-cp36m-linux_x86_64.whl nun verschiedene Warnungen bekommen. Diese scheinen viel kleiner zu sein?Installation Tensorflow: Python - Tensorflow Version Mismatch Warnungen

2017-11-02 13:31:01.945114: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations. 
2017-11-02 13:31:01.945138: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations. 
2017-11-02 13:31:01.945154: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations. 
2017-11-02 13:31:01.945158: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations. 
2017-11-02 13:31:01.945166: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations. 

Ich bin auf Ubuntu 17.10 mit Python 3.6.3 installiert. I tensorflow Rad-Datei in virtualenv installiert

mit
export TF_BINARY_URL=../Downloads/tensorflow-1.4.0-cp36-cp36m-manylinux1_x86_64.whl 
pip3 install --upgrade $TF_BINARY_URL 

Dann unter den Beispielcode ausgeführt wird I-Code bekommen ein paar Warnungen scheint

AI/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6 
    return f(*args, **kwds) 
2017-11-02 12:32:13.054316: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA 

Das Beispiel zur Validierung nach der Installation alle Fehler zu laufen. Sollte ich sie einfach ignorieren? Habe ich die falsche Raddatei heruntergeladen?

import tensorflow as tf 
hello = tf.constant('Hello, TensorFlow!') 
sess = tf.Session() 
print(sess.run(hello)) 

Antwort

1

Wie Sie hier für python3.5 TF_Binary_URL zu sehen ist

https://www.tensorflow.org/install/install_linux#the_url_of_the_tensorflow_python_package die Tensor-Version 1.3 ist, also nur mit, dass der Check.

+0

Das hat nicht funktioniert, aber ich änderte beide 34 bis 36 meiner python-Version zu entsprechen. Ich habe Original Post mit meinen Ergebnissen aktualisiert. –

+0

Ich glaube nicht, dass diese Warnung in Zukunft irgendwelche Probleme verursachen wird, weil diese für Berechnungszwecke sind. Wenn mich jemand in Zukunft wissen sollte –

+0

Ja - soweit ich verstehe, ist es jetzt in Ordnung. Kann einfach schneller laufen, wenn ich aus der Quelle kompiliert habe. Danke! –

1

Dies sind nur Warnungen und ich glaube nicht, dass Sie bei einem Verlust sein wird, wenn Sie sie tun ignorieren. There ist ein Problem Thread in Tensorflow Repo darüber. Sie bedeuten im Grunde, dass, wenn Sie TF von der Quelle in Ihrer Maschine gebaut hätten, dann könnte es schneller gewesen sein (nur auf dem CPU-Aspekte. In Anbetracht der Tatsache, dass Sie nicht GPU erwähnt haben, nehme ich an, dass das, was Sie wollen.)

Sie können sie stoppen, indem Sie diese export TF_CPP_MIN_LOG_LEVEL=2

+0

Ja - ich kam im Wesentlichen zu diesem Schluss in meinem Kommentar oben. Danke für die Bestätigung/Bestätigung. –

+0

Gern geschehen. Happy Ich könnte helfen – SRC

+0

Ich denke, ich kenne die Antwort auf diese Frage aber: Warum genau ist es eine gute Praxis, eine virtualenv über native/Pip zu verwenden? –

Verwandte Themen