運行tensorflow是出現的問題This TensorFlow binary is optimized with Intel(R) MKL-DNN to use the following CPU


2019-09-06 11:01:39.589297: I tensorflow/core/platform/cpu_feature_guard.cc:145] This TensorFlow binary is optimized with Intel(R) MKL-DNN to use the following CPU instructions in performance critical operations: AVX AVX2
To enable them in non-MKL-DNN operations, rebuild TensorFlow with the appropriate compiler flags.
2019-09-06 11:01:39.591143: I tensorflow/core/common_runtime/process_util.cc:115] Creating new thread pool with default inter op setting: 8. Tune using inter_op_parallelism_threads for best performance.

翻譯一下:

根據我目前查到的資料,

這個TensorFlow二進制文件使用Intel(R) mkl - dnn進行了優化,以便在性能關鍵操作中使用以下CPU指令:AVX AVX2

要在非mkl - dnn操作中啟用它們,請使用適當的編譯器標志重新構建TensorFlow

說白了就是tensorflow安裝的不對,不是版本問題,而是需要從源代碼安裝tensorflow

解決方法,就是忽略

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

加上這兩句可以覆蓋掉


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM