【发布时间】:2017-07-09 03:42:51
【问题描述】:
我使用here 提供的默认说明成功地在 ubuntu 16.04 上安装了 cpu only tensorflow。说明建议使用 virtualenv 和 pip,所以我没有从源代码构建。按照这些说明进行安装没有问题。
我使用同一页面上further down 提供的说明验证了我的安装,当程序成功运行时,它会输出以下警告。
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 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.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.
Hello, TensorFlow!
我查看的所有 stackoverflow 页面仅针对使用 bazel 从源代码构建的人,但似乎不适用于使用 pip 的人。
如何根据 SSE 说明重新编译或更新我的安装?
【问题讨论】:
-
这可能是你有一些混合环境的问题,过去我确实使用源代码在 ubuntu 16.04 上安装 tensorflow,但由于 v.0.11 简单的 pip 安装工作正常
-
我已经编译了 tensorflow 以使用 SSE 指令。您可以从github.com/lakshayg/tensorflow-build 下载预编译的二进制文件。
标签: python tensorflow pip virtualenv sse