成功解决Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2

目录

解决问题

资料参考

思路分析

解决办法


解决问题

在导入tensorflow后,进行运算时,出现了红色错误!

import tensorflow as tf

import numpy as np

资料参考

Advanced Vector Extensions (AVX, also known as Sandy Bridge New Extensions) 先进的矢量扩展(AVX,也称为桑迪桥新的扩展)是从英特尔和英特尔在2008年3月提出的微处理器的X86指令集架构的扩展,第一次由英特尔支持,在第2011季度和以后的SoeBoE桥处理器装运。AMD与推土机处理器航运在Q3 2011。AVX提供了新的特性、新的指令和新的编码方案。AVX2将大多数整数命令扩展为256位,并介绍了融合乘法累加(FMA)操作。AVX-512扩展AVX到512位支持使用一个新的EVEX前缀编码由英特尔提出的2013年7月,第一次支持英特尔与骑士着陆处理器,在2016装运。

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  

思路分析

参考网友的评论解释:这个意思其实是,您下载的TensorFlow太low了,根本没有通过兼容AVX来Compile。如果您下载源代码在该电脑上重新compile,就可以支持AVX。其实你的电脑是支持AVX的,只是编译好的TensorFlow不支持。

网友分析比较正确请参考理解

1、第一位网友

https://github.com/lakshayg/tensorflow-build 这有别人编译好的

2、第二位网友

3、第三位网友

社区里说需要从源代码安装TensorFlow,以编译支持SIMD指令集的TF,这样可以更快的使用tf,https://www.tensorflow.org/install/source

解决办法

在最顶行写入

import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'

此方法,只能可以临时屏蔽警告信息,看起来舒服了一些。因为博主能力有限,如果网友们,有更好的解决办法,群策群力,请留言探讨,共同学习啦!

成功解决Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2相关推荐

  1. 成功解决Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2(二)

    成功解决Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2(二) ...

  2. 成功解决Your CPU supports instructions that this TensorFlow binary was not compiled to use AVX AVX2

    ** 避坑必读,强烈建议: 1.说明你电脑支持AVX2,而你的tesorflow版本不支持,重建虚拟环境重装tensorflow 2.离线安装tensorflow,下载安装包之后再安装 3.如果遇到新 ...

  3. Your CPU supports instructions that this TensorFlow binary was not compiled to use AVX AVX2

    大致的原因就是说:tensorflow觉得你电脑cpu还行,支持AVX(Advanced Vector Extensions),运算速度还可以提升,所以可以开启更好更快的模式,但是你现在用的模式相对来 ...

  4. 彻底解决“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 com ...

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

    ps:这跳出的是一个cpu警告,但我用的是gpu啊!!即使我安装合适版本的(编译过的)tensorflow来满足我cpu的AVX2扩展,也还是没对我的运行速度有太大提高(猜测),所以如果你是使用gpu ...

  6. Tensorflow警告:our 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 u ...

  7. 去除警告:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA

    去除警告:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 文章 ...

  8. 警告:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA(亲测)

    警告:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 转载:h ...

  9. 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 us ...

最新文章

  1. 物理机存放mysql实例原则_MySQL数据库规范 (设计规范+开发规范+操作规范)
  2. ACM数论之旅2---快速幂,快速求a^b
  3. ssh项目同时使用mysql跟sqlserver数据库_MSSQL_如何把sqlserver数据迁移到mysql数据库及需要注意事项,在项目开发中,有时由于项目 - phpStudy...
  4. python excelwriter保存路径_Python和Excel 终于可以互通了!!
  5. ext.ajax.request跨域,跨域Ajax访问header中 x-requested-with丢失
  6. Linux Tomcat日志查看实用命令
  7. 基于jquery类库的绘制二维码的插件jquery.qrcode.js
  8. 批量修改 Netapp NFS Export
  9. 决策树ID3、C4.5、CART、随机森林、bagging、boosting、Adaboost、GBDT、xgboost
  10. 从《网管员必读》系列丛书获奖看读者的真正需求——成功原因分析(一)
  11. Android开发框架整理
  12. 医疗险十大常见误区,你中了几个?
  13. 中央空调系统运行原理以及相关设备介绍
  14. 墙绘装饰设计公司网站织梦模板免费下载
  15. 全面理解Python迭代器和生成器
  16. 2023新春快乐,兔年大吉!
  17. 边缘计算开源框架EdgeXFoundry的部署应用开发(三)设备服务开发
  18. latex解决数据库中与或非符号如何打
  19. jupyter notebook / jupyter lab 深色主题下如何设置字体 及 如何设置绘图颜色
  20. 电商系统设计MySQL_基于MySQL设计的图书电商系统的制作方法

热门文章

  1. Mac环境下Redis的安装与配置
  2. TF.js 识别图片中的物件
  3. 阿里巴巴国际站询盘是什么意思?如何提高询盘率
  4. 分析与解决windows10下上网很慢
  5. andriod 继承view定义自己的形状
  6. 功能自动化测试工具列表大全
  7. 京东秒杀系统模块的Redis分布式锁深度剖析,没给你讲明白你打我
  8. 最强 AWS 的十条军规,首席技术官总结过去十年的经验
  9. 【Consul】Consul架构-Gossip协议
  10. PL/SQL Developer 和 instantclient客户端快速安装配置(图文)