2017-04-04 75 views
0

導入張量流時會出現這些警告。在Tensorflow中導入警告

操作系統:Windows 10的64位

的Python:3.5.2

Tensorflow-CPU:1.1.0每晚構建

2017-04-04 16:59:56.185045: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE instructions, but these are available on your machine and could speed up CPU computations. 
2017-04-04 16:59:56.185185: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE2 instructions, but these are available on your machine and could speed up CPU computations. 
2017-04-04 16:59:56.186551: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations. 
2017-04-04 16:59:56.187141: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\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-04-04 16:59:56.187629: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\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-04-04 16:59:56.188138: W c:\tf_jenkins\home\workspace\nightly-win\device\cpu\os\windows\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. 

雖然這些都不是問題,而在python運行它,但是當我從MATLAB調用python腳本時出現了這個問題,我有一個朋友和Theano做了同樣的事情,他告訴我必須重新編寫所有的錯誤和警告才能在MATLAB上工作。我嘗試了所有可用的解決方案,但仍無法解決這些警告。

如果有人有這個答案,我會很感激

預先感謝您

+0

[如何使用SSE4.2和AVX指令編譯Tensorflow?](http://stackoverflow.com/questions/41293077/how-to-compile-tensorflow-with-sse4-2-and-avx -instructions) – putonspectacles

+0

它的Linux和我不使用anaconda。所以可能是這個問題不應該重複 –

+0

你是從源建立? – putonspectacles

回答

1

,如果你是從源代碼構建tensorflow和你使用高度實驗bazel for windows

你可以使用這些參數:

bazel build -c opt --copt=-mavx --copt=-mavx2 \ 
    --copt=-mfma \ 
    --copt=-mfpmath=both \ 
    --copt=-msse4.2 \ 
    --config=cuda -k //tensorflow/tools/pip_package:build_pip_package 

刪除--config=cuda -k如果你不立方米建築da支持。

+0

我現在在我的ubuntu機器上構建它,並且會將.whl文件安裝到windows中。我不知道這是否有效,但讓我們看看 –

+0

我試圖建立文件,但它失敗了,所以可以有一種方法,我可以指示解釋器完全忽略警告 –