ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

Windows中的Tensorflow Java API

2019-11-11 17:13:06  阅读:385  来源: 互联网

标签:tensorflow native c-3 java compilation


我试图在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的平台上进行构建相同的步骤进行操作.我还没有亲自尝试过.

标签:tensorflow,native,c-3,java,compilation
来源: https://codeday.me/bug/20191111/2021350.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有