Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TensorFlow dependencies needed. How to run TensorFlow on Windows

I am interested in getting TensorFlow to run on Windows, however at present I realize that this is not possible due to some of the dependencies not being usable with Windows, e.g. Bazel.

The need arises because as I currently understand it the only way to access the GPU from TensorFlow is via a non-virtual install of Linux. I do realize I can dual boot into a Linux install, but would prefer to avoid that route.

To resolve the problem I am in need of the entire dependency chain to build TensorFlow as was wondering if this already existed.

I also realize that I can capture the build output when building from source as a solid start, but would like to avoid that work if it is already known.

There is a beta of Bazel that runs on Windows - https://github.com/dslomov/bazel-windows

See related GitHub Issue to run TensorFlow on Windows. - https://github.com/tensorflow/tensorflow/issues/17

Another reason to run on Windows is the possibility to port to Xbox One.

I found a possible answer, still need to check it. This will generate a dependency graph as a dot file.

$ bazel query 'deps(//tensorflow/tools/pip_package:build_pip_package)' --output graph > tensorflow.dependency.dot
like image 691
Guy Coder Avatar asked Sep 27 '22 04:09

Guy Coder


1 Answers

There are now three main options for building and/or running TensorFlow on Windows:

  • You can install a GPU-enabled PIP package of TensorFlow 0.12rc0 from PyPI: pip install tensorflow-gpu
  • You can build the GPU-enabled PIP package yourself using the experimental CMake build. This also gives you the ability to work with TensorFlow in Visual Studio. The documentation for this build can be found here.
  • There is preliminary support for building TensorFlow using Bazel for Windows. However, we are still ironing out some bugs with this build.
like image 165
mrry Avatar answered Sep 29 '22 21:09

mrry