The TensorFlow library wasn't compiled to use SSE4.1 instructions

原创
2017/08/19 09:36
阅读数 2K

2017-08-19 09:02:27.038166: 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-19 09:02:27.038428: 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-19 09:02:27.038597: 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.

 

这些只是警告。 他们只是通知您,如果您从源代码构建TensorFlow可以在您的机器上更快。 默认情况下,这些指令在可用的版本上未启用,我认为可能跟更多CPU兼容性有关。
如果想要禁用这些警告,请加入下面的一段代码:

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

TF_CPP_MIN_LOG_LEVEL是一个负责日志的TensorFlow环境变量,要禁言INFO日志设置为1,要过滤警告设置为2,要禁言ERROR日志(不推荐)设置为3。

 

 

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部