我試圖從源代碼安裝,因爲,當我與PIP和安裝virtualenv中未安裝CPU指令(SSE,AVX ...)警告Tensorflow:在哪裏添加CPU指令從源代碼安裝Tensorflow?
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. 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. 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. 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. 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.
所以我想從源代碼安裝Tensorflow,以便可以使用Tensorflow編譯這些指令。
除了Tensorflow網站上的說明以外,我還需要做什麼來編譯這些指令嗎? (
./configure
?)如果是這樣,我需要做什麼以及如何做到這一點?
時,我必須安裝PIP包安裝,Tensorflow網站說,針對Linux的命令是:
sudo pip install /tmp/tensorflow_pkg/tensorflow-1.0.1-py2-none-any.whl
它說,該命令將根據機器上的不同,什麼是MacOS的等效命令?我該如何去Bazelwheel
步驟?
側面說明:有人告訴我,有一些方法我可以巴澤勒做到這一點,但作爲雛與巴澤爾並沒有太多經驗豐富的終端,我需要做什麼明確的步驟是什麼?
OS塞拉利昂(10.12.2)
從已刪除的答案:預先構建的優化二進制文件:https://github.com/lakshayg/tensorflow-build –