I am starting to work with TensorFlow library for deep learning, https://www.tensorflow.org/.
I found a explicit guide to work on it on linux and Mac but I did not find how to work with it under Windows. I try over the net, but the information are lacking.
I use Visual Studio 2015 for my projects, and I am trying to compile the library with Visual studio Compiler VC14.
How to install it and to use it under Windows?
Can I use Bazel for Windows for production use?
Follow this link to install Tensorflow on Windows and you can also use it in Visual Studio
You can't at the moment. The problem is that tensorflow uses the bazel build another Google internal tool that has been exposed as an open source project and it has only support for mac and unix. Until bazel is ported to windows or another build system is added to tensorflow there is a little chance to run tensorflow natively on windows.
That said you can install virtualbox and then install docker-machine and run a linux container with tensorflow inside it.
As of writing this answer, I wasn't able to get tensorflow to install properly with python version 3.5.2. Reverting to python 3.5.0 did the trick.
Then I was able to install with
Installing TensorFlow
TensorFlow currently supports only Python 3.5 64-bit. Both CPU and GPU are supported. Here are some installation instructions assuming you do not have Python 3.5 64-bit:
python get-pip.py
pip install tensorflow
(CPU version) orpip install tensorflow-gpu
(GPU version --> requires CUDA to be installed).Testing TensorFlow
You can now run something like following to test whether TensorFlow is working fine:
TensorFlow comes with a few models, which are located in
C:\Python35\Lib\site-packages\tensorflow\models\
(assuming you installed python inC:\Python35
). For example, you can run in the console:or
Limitations of TensorFlow on Windows
Initial support for building TensorFlow on Microsoft Windows was added on 2016-10-05 in commit 2098b9abcf20d2c9694055bbfd6997bc00b73578:
The Microsoft Windows support was introduced in TensorFlow in version 0.12 RC0 (release notes):
I can confirm that it works in the Windows Subsystem for Linux! And it is also very straightforward.
In the Ubuntu Bash on Windows 10, first update the package index:
Then install pip for Python 2:
Install tensorflow:
The package is now installed an you can run the CNN sample on the MNIST set:
I just tested the CPU package for now.
I blogged about it: http://blog.mosthege.net/2016/05/11/running-tensorflow-with-native-linux-binaries-in-the-windows-subsystem-for-linux/
cheers
~michael