Windows 上 TensorFlow java 的本机库 [英] Native library for TensorFlow java on windows
问题描述
既然在 TensorFlow 上有对 Java 的实验性支持,我想按照自述文件中的步骤开始在 Windows 上使用
Now that there is experimental support for Java on TensorFlow, I wanted to get started on Windows, following the steps in the readme
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/java/README.md
我得到了预期的错误:
java.lang.UnsatisfiedLinkError
Python 版本运行良好,但不是 Java....
The Python version is running fine, but that is not Java....
自述文件指向 Mac 和 Linux 的本机库,有人可以确认我只需要稍等一下吗?
The readme points to native libraries for Mac and Linux, can someone confirm that I just have to wait a bit ?
推荐答案
这对我有用虽然)到我的项目根文件夹,如下所示 将 Tensorflow 添加到 Java 项目 Netbeans.虽然我使用的是 Intellij IDEA
This works for me when I added the native i.e tensorflow_jni.dll on PC or libtensorflow_jni.dylib on Mac(this should be the same for Linux distributions, not tested though) to my project root folder as seen here Adding Tensorflow to Java Project Netbeans. Though I'm using Intellij IDEA
这篇关于Windows 上 TensorFlow java 的本机库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!