解決Tensorflow的編譯問題

來源:互聯網
上載者:User

問題的起因

今天嘗試安裝tensorflow的CPU版(GPU太菜 不支援),通過pip3 install tensorflow 安裝。安裝很順利,我就跑了最簡單的hello wolrd例子。

結果確實可以跑出來,同時也彈出來一個警告。

2017-11-28 09:07:17.849180: 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 FMAb'helloworld'

警告說你的Tensorflow不能使用SSE4.1 SSE4.2 AVX AVX2 FMA這些指令集進行編譯。

國內的部落格沒找到解決辦法,最後在國外的文章中找到瞭解決辦法。

因為通過pip安裝的是manylinux1_X86這是一個通用版本,根據指令集不同,需要進行不同的編譯。

附上github的連結:TensorFlow binaries supporting AVX, FMA, SSE etc.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.