2017-10-16 11:51:53.826232: 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-10-16 11:51:53.826259: 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-10-16 11:51:53.826267: 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-10-16 11:51:53.826273: 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.
安装好 tensorflow 后,执行 tensorflow 官方文档的代码,报了上面的错误。
这是一个提醒,提示通过源码安装可以提高 tensorflow 的效率,但不影响使用。
这个提醒默认是开启的,需要禁用的话可以在代码头部加入下面的代码。
import os
os.environ[‘TF_CPP_MIN_LOG_LEVEL’]=’2′
The TensorFlow library wasn’t compiled to use SSE instructions 警告修复
发表评论