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