tensorflow去掉warning的方法


運行tensorflow程序時,提示:

I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA

 

去掉提示的方法:

 

vim ~/.bashrc
然后在這個文件里面最后一行添加一條語句:
export TF_CPP_MIN_LOG_LEVEL=2
然后保存退出文件
source ~/.bashrc

任務完成


免責聲明!

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



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