报错解决——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  

原文地址:https://www.cnblogs.com/zhuminghui/p/9379243.html

时间: 2024-10-07 20:26:53

报错解决——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:

我不知道大家是不是和我一样是用pip install tensorflow安装的tensorflow库,但是使用的时候,却会显示: Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2 虽然运行起来没什么问题,但是看着总是不舒服.网上查阅了其他大神的博客之后,终于知道怎么处理了. 首先,卸载原有的Tensorflow 包: pip unistall tensorfl

Tensorflow 运行警告提示 Your CPU supports instructions that this TensorFlow binary was not compiled to use

由于现在神经网络这个东西比较火,准确的说是深度学习这个东西比较火,我们实验室准备靠这个东西发几个CCF A类的文章,虽然我不太懂这东西,兴趣也一般都是毕竟要跟随主流的,于是今天安装起了 Tensorflow 这个深度学习的框架. 安装好以后运行一个Demo ,如下: import tensorflow as tf a=tf.constant(2) b=tf.constant(20) with tf.Session() as sess: print(sess.run(a*b)) 运行结果如下: 2

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

使用tensorflow时,提示 Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 去掉这个提示信息方法为修改~/.bashrc文件,最后加上一句 export TF_CPP_MIN_LOG_LEVEL=2 执行 source ~/.bashrc 即可 原文地址:https://www.cnblogs.com/liqinggui/p/9533170.html

安装tensorflow遇到:Your CPU supports instructions that this TensorFlow binary was not compiled to use

为了提升CPU计算速度的.若你有支持cuda的GPU,则可以忽略这个问题,因为安装SSE4.1, SSE4.2, AVX, AVX2, FMA, 仅仅提升CPU的运算速度(大概有3倍). 解决方法: 忽视警告,并屏蔽警告 开头输入如下: import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' 2.进 tensorflow 官网,从源码安装. 原文地址:https://www.cnblogs.com/theWinter/p/8244685.html

Oracle启动监听报错:The listener supports no services解决

Oracle启动监听报错:The listener supports no services解决 及ora-12514 未注册上服务问题. Oracle11g服务器重启系统之后,出现了几个莫名的报错,下面是其中一个,已解决. $ lsnrctl start 报错提示: The listener supports no servicesThe command completed successfully 这样启动后远程连接会报错:oracle ORA-12514:TNS:listener does

电脑死机、蓝屏、黑屏、报错解决办法

电脑死机.蓝屏.黑屏.报错解决办法 1.ctrl+alt+delete,打开任务管理器,选择关机-重新启动,如果不行接着看. 2.长按电源5秒钟,强制关机,(因为可能是CPU过热,它需要凉快一下),在正常开机,如果不行接着看. 3.长按电源5秒钟,强制关机,开机,按F8,选择最后一次正常启动,如果不行接着看. 4.长按电源5秒钟,强制关机,开机,按F8,选择进入安全模式,如果不行接着看. 5.如果电脑好了,那么在重新启动,确定电脑完全好了,在进安全模式全盘杀毒,如果又打不开了,那么接着看. 6.

PA模块报错-实际返回的行数超出请求的行数(分析标准FORM报错解决思路)

录入预算报错时报错: 分析:这个错误是select into 语句返回多行的结果,但具体在哪? 两种方法查找,trace 或者debug 1.trace 启用调试 获取trace文件 -bash-3.2$ tkprof ERPDEV_ora_7532_RICK.trc $HOME/7532_rick.fchela.txt TKPROF: Release 11.2.0.2.0 - Development on Mon Jul 28 11:21:34 2014 Copyright (c) 1982,

Oracle11g 启动报错ORA-00845: MEMORY_TARGET not supported on this system报错解决

ORA-00845: MEMORY_TARGET not supported on this system报错解决 Oracle启动报错 ORA-00845: MEMORY_TARGET not supported on this system报错解决 SQL> startup ORA-00845: MEMORY_TARGET not supported on this system 查看原本大小 [[email protected] oracle]# df -h|grep shm tmpfs

【Unity3D】生成工程报错解决—UnityEditor.HostView:OnGUI() Error building Player: Couldn't build player because of unsupported data on target platform.

错误 错误1:An asset is marked as dont save, but is included in the build: unityEditor.HostView:OnGUI() 错误2:Building - Failed to write file: sharedassets0.assetsUnityEditor.HostView:OnGUI() 错误3:Error building Player: Couldn't build player because of unsup