需要TensorFlow依赖项.如何在Windows上运行TensorFlow [英] TensorFlow dependencies needed. How to run TensorFlow on Windows

查看:252
本文介绍了需要TensorFlow依赖项.如何在Windows上运行TensorFlow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣让TensorFlow在Windows上运行,但是目前我意识到这是不可能的,因为某些依赖项无法在Windows上使用,例如淡褐色.

之所以出现需求,是因为据我目前所知,从TensorFlow访问GPU的唯一方法是通过非虚拟安装Linux.我确实意识到我可以双重引导进入Linux安装,但是宁愿避免这种选择.

要解决该问题,我需要整个依赖链来构建TensorFlow,因为想知道它是否已经存在.

我还意识到,当从源代码进行构建时,我可以捕获构建输出,但是要避免已经知道的工作.

有一个在Windows上运行的Bazel Beta- https://github.com/dslomov/bazel-windows

请参阅相关的GitHub Issue以在Windows上运行TensorFlow. - https://github.com/tensorflow/tensorflow/issues/17

在Windows上运行的另一个原因是可以移植到Xbox One.

我找到了可能的答案,仍然需要检查.这将生成一个依赖关系图作为点文件.

 $ bazel query 'deps(//tensorflow/tools/pip_package:build_pip_package)' --output graph > tensorflow.dependency.dot
 

解决方案

现在在Windows上用于构建和/或运行TensorFlow的主要有三个选项:

  • 您可以从PyPI安装TensorFlow 0.12rc0的支持GPU的PIP软件包:pip install tensorflow-gpu
  • 您可以使用实验CMake构建.这也使您能够在Visual Studio中使用TensorFlow.可以在此处找到该文档. >.
  • 使用 Bazel for Windows 来构建TensorFlow具有初步支持. .但是,我们仍在使用此版本解决一些错误.

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

解决方案

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.

这篇关于需要TensorFlow依赖项.如何在Windows上运行TensorFlow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆