【发布时间】:2017-02-26 01:11:34
【问题描述】:
MacBook Air:OSX El Capitan
当我在终端 (python 3 tfpractice.py) 中运行 TensorFlow 代码时,我得到比正常情况更长的等待时间来取回输出,然后出现以下错误消息:
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.
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.
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.
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.
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 只在这个 pip3 安装上工作。于是我就跟着路径去了:tensorflow/core/platform/cpu_feature_guard
我需要在这里编辑代码吗?或者是否有其他方法可以让 TensorFlow 使用这些指令进行编译?
我使用 sudo pip3 install tensorflow 安装了 TensorFlow。
【问题讨论】:
-
其他question讨论这个
标签: python machine-learning terminal tensorflow cpu