报错解决——Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2(示

Posted zhuminghui

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了报错解决——Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2(示相关的知识,希望对你有一定的参考价值。

  

  在导入tensorflow后,进行运算时,出现了报错Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2

  解决方法:在最顶行写入以下代码即可

import os
os.environ[TF_CPP_MIN_LOG_LEVEL] = 2 

 

参考资料:Advanced Vector Extensions 

技术分享图片
import os  
os.environ["TF_CPP_MIN_LOG_LEVEL"]=1 # 这是默认的显示等级,显示所有信息  
os.environ["TF_CPP_MIN_LOG_LEVEL"]=2 # 只显示 warning 和 Error   
os.environ["TF_CPP_MIN_LOG_LEVEL"]=3 # 只显示 Error  
View Code

 

以上是关于报错解决——Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2(示的主要内容,如果未能解决你的问题,请参考以下文章

Win10下TensorFlow安装错误解决:Your CPU supports instructions that this TensorFlow binary was not compiled t

解决tensorflow问题:Your CPU supports instructions that this TensorFlow binary was not compiled to use:(示

Mac安装telnet报错Error: Your CLT does not support macOS 11.2

Mac安装telnet报错Error: Your CLT does not support macOS 11.2

Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2

tensorflow输出提示Your CPU supports instructions that this TensorFlow binary was not compiled to use: AV