tensflow java api_Windows中的Tensorflow Java API

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

它说我们必须构建本机库,将需要从Windows的源代码构建.但是它没有详细的说明.

任何人都有运气可以编译它吗?

有什么我可以遵循的步骤吗?

解决方法:

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值