DL4J UnsatisfiedLinkError:在没有的java.library.path jniopenblas

我试图建立的gradle通过一个deeplearning4j项目,但我得到一个UnsatisfiedLinkError:DL4J UnsatisfiedLinkError:在没有的library.path" title="java.library.path">java.library.path jniopenblas

Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniopenblas in java.library.path 

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)

at java.lang.Runtime.loadLibrary0(Runtime.java:870)

at java.lang.System.loadLibrary(System.java:1122)

at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:976)

at org.bytedeco.javacpp.Loader.load(Loader.java:777)

at org.bytedeco.javacpp.Loader.load(Loader.java:684)

at org.bytedeco.javacpp.openblas.<clinit>(openblas.java:10)

at org.nd4j.linalg.cpu.nativecpu.blas.CpuBlas.setMaxThreads(CpuBlas.java:117)

at org.nd4j.nativeblas.Nd4jBlas.<init>(Nd4jBlas.java:35)

at org.nd4j.linalg.cpu.nativecpu.blas.CpuBlas.<init>(CpuBlas.java:12)

at org.nd4j.linalg.cpu.nativecpu.CpuNDArrayFactory.createBlas(CpuNDArrayFactory.java:89)

at org.nd4j.linalg.factory.BaseNDArrayFactory.blas(BaseNDArrayFactory.java:67)

at org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner.getEnvironmentInformation(NativeOpExecutioner.java:1176)

at org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner.printEnvironmentInformation(DefaultOpExecutioner.java:562)

at org.nd4j.linalg.factory.Nd4j.initWithBackend(Nd4j.java:6210)

at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:6087)

at org.nd4j.linalg.factory.Nd4j.<clinit>(Nd4j.java:201)

at org.deeplearning4j.nn.conf.NeuralNetConfiguration$Builder.seed(NeuralNetConfiguration.java:777)

at my.project.NeuralNetwork.main(NeuralNetwork.java:43)

Caused by: java.lang.UnsatisfiedLinkError: no openblas in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)

at java.lang.Runtime.loadLibrary0(Runtime.java:870)

at java.lang.System.loadLibrary(System.java:1122)

at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:976)

at org.bytedeco.javacpp.Loader.load(Loader.java:765)

... 14 more

我的依赖关系是这样的:

dependencies { 

compile group: 'org.deeplearning4j', name: 'deeplearning4j-core', version: '0.9.1'

compile group: 'org.deeplearning4j', name: 'rl4j', version: '0.9.1'

compile group: 'org.nd4j', name: 'nd4j-native', version: '0.9.1'

compile group: 'org.nd4j', name: 'nd4j-jblas', version: '0.9.1'

compile group: 'org.nd4j', name: 'nd4j-api', version: '0.9.1'

compile 'org.nd4j:nd4j-native:0.9.1:windows-x86_64'

}

我也尝试添加

compile group: 'org.bytedeco.javacpp-presets', name: 'openblas', version: '0.2.20-1.3' 

但这并没有帮助。

我需要安装OpenBlas吗?在Quick Start Guide for deeplearning4j中我没有阅读过这样的内容。 OS是Win10,IDE是IntelliJ Community Edition。

回答:

nd4j-jblas甚至不是有效的maven依赖项。你从哪里得到的?

我们没有nd4j-jblas在我们的文档中的任何地方,它现在还没有存在将近2年。坚持我们的入门文档: http://deeplearning4j.org/quickstart

我们解释您在那里需要什么。而不是搞乱所有的分类器,只需使用: nd4j本地平台的工件ID。

以上是 DL4J UnsatisfiedLinkError:在没有的java.library.path jniopenblas 的全部内容, 来源链接: utcz.com/qa/264699.html

回到顶部