The TensorFlow library wasn't compiled to use SSE instructions, but these are avail、原因及解决办法
来源:互联网 发布:中科院在职研究生知乎 编辑:程序博客网 时间:2024/04/26 22:18
最近在看DenseNet, 最后训练时候发现
不对应该是这个图片
可以看到,最后虽然是不影响最后的结果,可是作为一个合格的强迫症患者,还是怕根问底的查了所有东东。
现在咱们来分析:
问题:出现The TensorFlow library wasn’t compiled to use SSE instructions, but these are available on your machine and could speed up CPU computations 警告
人话: 大概意思就是,这个TF库没有编译,不能使用SSE、SSE2、FMA等指令,但是他们是可以加速你的CPU计算。
盲点: 没编译? 怎么编译? SSE、SSE2、FMA是什么?
顺藤摸瓜,我找到了,SSE点我看SSE是什么
从这里来看的话,这群老外讨论的是:因为你的TF是 用 “pip install tensorflow” 这种方法安装的Tensorflow,而不是从源码编译安装的。
如果是用GPU的话,就不需要管SSE这些东西了,但是还是会出现警告,并且是不一样的。
解决办法:想一想,编译了不就好了? 确实,赶紧查查,发现越查水越深。。。
- 解决方法一:
import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
- 解决方法二:
系统属性-环境变量 这种方式一劳永逸,比较好 这两种方法都是治标不治本
- 解决方法三:
安装bazel,编译tensorflow。
这个问题的原## 标题 ##因是CPU支持更快的运算,安装的Tensorflow中缺少对应的模块,需要编译安装。
当我们使用GPU的情况下,并不需要用到CPU,所以这些warning可以忽略。
By the way, 电脑配置:
处理器: Intel(R)Core(TM)_i7-4790_CPU@_3.60GHz
显卡: Intel(R) HD Graphics 4600
- The TensorFlow library wasn't compiled to use SSE instructions, but these are avail、原因及解决办法
- tensorflow使用遇到的问题The TensorFlow library wasn't compiled to use SSE instructions, but these are avail
- tensorflow出现一大串 The TensorFlow library wasn't compiled to use SSE instructions, but these are ...
- The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available...
- TensorFlow wasn't compiled to use SSE (etc.) instructions, but these are available
- The TensorFlow library wasn't compiled to use SSE4.1/SSE4.2/AVX/AVX2/FMA instructions, but these are
- The TensorFlow library wasn'tcompiled to use SSE4.1 instructions, but these are available on your ma
- The TensorFlow library wasn't compiled to use SSE4.1 instructions
- 使用tensorflow serving 启动模型时,报如下错误:The TensorFlow library wasn't compiled to use SSE4.1 instructions
- Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
- "WorldClient was expected to be running but wasn't;"解决方法
- Failed to load JavaHL Library. These are the errors that were encountered: n
- Failed to load JavaHL Library. These are the errors that were encountered
- Failed to load JavaHL Library. These are the errors that were encountered:
- I have a bad habit but I wasn't meant to do
- SVN使用时经常报Failed to load JavaHL Library.These are the errors that were encountered
- Failed to load JavaHL Library. These are the errors that were encountered: no libsvnjavahl-1 in java
- [问题]Aircrack-ng wasn't compiled with sqlite
- 从零编程基础小白到专业数据分析师,你需要走多远
- VsVim使用教程(以及简要vim介绍)
- 向手机缓存区写入Text
- pycaffe的使用
- C语言猜拳小游戏,课堂设计
- The TensorFlow library wasn't compiled to use SSE instructions, but these are avail、原因及解决办法
- 第四周实践项目8 C++标准模板库与数据结构的学习
- mysqldump备份和还原&&使用mysqldump备份和恢复所有数据库
- eclipse编辑环境的美化——eclipse color theme的使用
- Java+ selenium+maven截图方法TakeScreenshot
- 通过junit/TestNG+java简单实现接口的自动化测试
- 剑指offer—序列化二叉树
- 将视频监控带入数字时代
- eclipse birt报表预览出现Unhandled event loop exception java.lang.StackOverflowError异常