tensorflow去掉warning的方法

Posted yulianggo

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

任务完成

以上是关于tensorflow去掉warning的方法的主要内容,如果未能解决你的问题,请参考以下文章