TensorFlow关于 SSE AVX的Warning问题
来源:互联网 发布:包月无限流量软件 编辑:程序博客网 时间:2024/06/06 07:02
从谷歌下载TensorFlow使用,在测试使用过程中,每次运行代码,都会输出一大堆的warning信息(见本文的最后部分),其大致意思是:本机CPU架构支持SSE、AVX等加速指令,而当前使用的TensorFlow库并没有充分利用这些指令集,如果能够使用开启了这些指令集的TensorFlow版本,则可以提高TensorFlow的执行效率。
就目前而言,查阅了谷歌的相关文档,提供的TensorFlow库还相对单一,没哟开启这么多指令集支持,其主要考虑的是让这些release版本的TensorFlow库可以安装在更多的计算机中使用,因为有很多老架构的cpu并不支持高级的指令集,比如AVX。
因此,如果想充分利用SSE和AVX来加速TensorFlow的CPU版本的运算,需要自己编译TensorFlow的源码。
另外,在StackOverflow中也找到了网友提供的用于暂时屏蔽这些warning输出的办法,如下:
import osos.environ['TF_CPP_MIN_LOG_LEVEL']='2'import tensorflow as tf
——————————-TensorFlow输出的关于CPU指令集SSE、AVX的warning信息————————————-
2017-08-01 17:14:18.620000: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.2017-08-01 17:14:18.620138: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.2017-08-01 17:14:18.620223: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.2017-08-01 17:14:18.620243: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.2017-08-01 17:14:18.620259: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.[array([ 14.], dtype=float32)]
阅读全文
0 0
- TensorFlow关于 SSE AVX的Warning问题
- TensorFlow CPU环境 SSE/AVX/FMA 指令集编译
- intel SSE AVX资料
- sse,avx指令官方介绍
- ubuntu16.04解决tensorflow提示未编译使用SSE3、SSE4.1、SSE4.2、AVX、AVX2、FMA的问题
- 一个简单求和函数的C-》SSE-》AVX的实现过程
- 测试CPU支持指令集AVX,AVX2,SSE情况的代码【VS2010调试通过】
- windows与Linux系统下的SSE、AVX、定点化优化
- X86 SSE/AVX指令集:向量内积
- 跨平台SSE、AVX指令测试
- sublime编译警告(sse,avx)及解决办法
- tensorflow使用遇到的问题The TensorFlow library wasn't compiled to use SSE instructions, but these are avail
- Tensorflow关于feed的问题
- 关于warning C4995的屏蔽问题
- 关于warning C4995的屏蔽问题
- 关于warning C4995的屏蔽问题
- RISC、CISC、 SIMD、FPU、MMX、SSE、SSEX、AVX、3D Now以及DSP、ARM的Neon简介
- tensorflow-gpu SSE
- Copy List with Random Pointer (Frequent+)
- Greedy Match学习笔记一 —— 匹配原理及SAS实现
- POS机控件调用错误---Y5,与密码通讯失败
- 仿照Listview 优雅实现 RecyclerView的 HeaderView 和 FootView
- 新手学xingo golang服务器之-修改xingo 支持字符协议(一)
- TensorFlow关于 SSE AVX的Warning问题
- 修改Tomcat默认访问根目录
- 负值之美:负margin在页面布局中的应用
- 机器学习笔记:SVM
- AOP日志 记录方法参数名及对应值(包括对象和基本类型)
- PowerDesigner提示错误Non SQL Error : Could not load class com.mysql.jdbc.Driver
- JAVA注解的使用
- ajax 个人学习小记
- 下载付费音乐