Windows中的Tensorflow Java API

我试图在Windows中为Java配置Tensorflow API.

据阅读我
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/java/README.md

它说我们必须构建本机库,将需要从Windows的源代码构建.但是它没有详细的说明.
任何人都有运气可以编译它吗?
有什么我可以遵循的步骤吗?

解决方法:

从官方的website

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.

此外,还有一个相关的github问题:https://github.com/tensorflow/tensorflow/issues/17,其中一位用户rongjiecomputer提到了该问题(2016年9月):

Tensorflow requires Bazel to build from source, If I am not mistaken,
Bazel is a build system like GNU Make, but not a compiler.

Based on what I saw as I briefly scanned through the code, source code
of Tensorflow itself uses mostly standard C++ library for things like
threading so it should be no problem to compile on Windows, essential
third-party libraries it uses all have Windows support.

Therefore, I think the main problem lies on lack of build method for
Windows rather than source code itself. There are works on using CMake
to build instead of Bazel but not complete yet. If someone can
translate Bazel build rules to CMake’s, I think we will be able to
build it on Windows.

因此,我假设,如果Bazel Windows能够正常运行,您可以按照与在其他使用Bazel的平台上进行构建相同的步骤进行操作.我还没有亲自尝试过.

上一篇:无法在CentOS / redhat上编译tcprstat.需要有关GNU Toolkit / bzr的建议


下一篇:Java原始类型声明