在 Windows 10 x64 上编译 TensorFlow 1.4.0 GPU

Compiling TensorFlow 1.4.0 GPU on Windows 10 x64

似乎没有关于如何在 Windows 10 x64 上编译 TensorFlow 1.4.0 GPU 的任何详细文档。

我需要重新编译 TF 以添加 Windows 7 x64 生产系统缺少的功能。

官方 Google link 在 Installing TensorFlow from Sources 只是说

We don't officially support building TensorFlow on Windows; however, you may try to build TensorFlow on Windows if you don't mind using the highly experimental Bazel on Windows or TensorFlow CMake build.

好的,我可以使用 Bazel 尝试编译类似

的东西
bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both --config=cuda -k //tensorflow/tools/pip_package:build_pip_package

但是如何将 Python 和 NVIDIA 依赖项合并到该构建中?

我应该改用 CMake 吗?

https://pypi.python.org/pypi/tensorflow-gpu 的 Windows 轮子是如何编译的?

要在 windows 上构建 tensorflow,请使用 cMake。

得到answer from Adriano Carmezim over at github. The complete instructions for building TensorFlow on Windows, including making Windows Python wheels are at: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/cmake/README.md

其他问题已在 github

上解决