2017-09-26 1 views
0

Je ces avertissements:tensorflow ne semble pas installer

2017-09-26 14: 50: 45,956966: W tensorflow/core/plate-forme/cpu_feature_guard.cc: 45] La bibliothèque tensorflow n » était pas t compilé pour utiliser les instructions SSE4.2, mais celles-ci sont disponibles sur votre machine et pourraient accélérer les calculs du CPU.

26/09/2017 14: 50: 45,956986: W tensorflow/core/plate-forme/cpu_feature_guard.cc: 45] La bibliothèque tensorflow n'a pas été compilé pour utiliser des instructions AVX, mais ceux-ci sont disponibles sur votre machine et pourrait accélérer des calculs CPU.

2017-09-26 14: 50: 45.956990: W tensorflow/noyau/plateforme/cpu_feature_guard.cc: 45] La bibliothèque TensorFlow n'a pas été compilée pour utiliser les instructions AVX2, mais celles-ci sont disponibles sur votre machine et pourraient accélérer des calculs CPU.

2017-09-26 14: 50: 45.956996: W tensorflow/noyau/plateforme/cpu_feature_guard.cc: 45] La bibliothèque TensorFlow n'a pas été compilée pour utiliser les instructions FMA, mais celles-ci sont disponibles sur votre machine et pourraient accélérer des calculs CPU.

Alors, d'après ce que j'ai trouvé sur internet, je puis suivi ce lien:

https://www.tensorflow.org/install/install_sources

Cependant, lorsque je tente:

$ python 

et:

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

La sortie devrait être: Hello, TensorFlow!

Cependant, je ne comprends pas du tout ...

[email protected]:~/Workspace$ python 
Python 3.6.2 (default, Sep 4 2017, 16:58:35) 
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin 
Type "help", "copyright", "credits" or "license" for more information. 

>>> import tensorflow as tf 
>>> hello = tf.constant('Hello, TensorFlow!') 
>>> sess = tf.Session() 
2017-09-26 14:56:33.905065: 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-09-26 14:56:33.905096: 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-09-26 14:56:33.905105: 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-09-26 14:56:33.905112: 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. 
>>> print(sess.run(hello)) 
b'Hello, TensorFlow!' 
>>> 

Même après que je l'ai installé, j'ai encore les mises en garde, pourquoi? J'ai utilisé Xcode 7.3 et je n'ai pas mis le GPU dans le processus ./configuration.

Une idée? :/ Merci d'avance !

Répondre

0

Vous pouvez masquer ces avertissements comme ceci:

import os 
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' 

Notez que votre programme encore sortie, tout simplement après tous les avertissements concernant SSE4.2 « Bonjour, tensorflow! ».

+0

En faisant cela, vous masquez uniquement le journal qui ne répond pas à ma question, n'est-ce pas? Merci pour votre aide! – Emixam23