Skip to content

Instantly share code, notes, and snippets.

View agibsonccc's full-sized avatar

Adam Gibson agibsonccc

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- Group-ID, artifact ID and version of the project. You can modify these as you want -->
<groupId>org.deeplearning4j</groupId>
<artifactId>deeplearning4j-examples</artifactId>
<version>1.0.0-SNAPSHOT</version>
java.lang.RuntimeException: Unknown exception.
at org.nd4j.nativeblas.Nd4jCpu$NativeOps.execCustomOpDouble(Native Method)
at org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner.exec(NativeOpExecutioner.java:1552)
at org.nd4j.linalg.convolution.Convolution.pooling2D(Convolution.java:265)
at org.deeplearning4j.nn.layers.convolution.subsampling.SubsamplingLayer.activate(SubsamplingLayer.java:314)
at org.deeplearning4j.nn.layers.AbstractLayer.activate(AbstractLayer.java:296)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.activationFromPrevLayer(MultiLayerNetwork.java:782)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.feedForwardToLayer(MultiLayerNetwork.java:922)
CMakeFiles/nd4jcpu.dir/cpu/NativeOps.cpp.o:NativeOps.cpp:(.text+0x5d70): first defined here
CMakeFiles/nd4jcpu.dir/__/include/ops/declarable/generic/convo/pooling3d_ops.cpp.o: In function `shape::concat(int, int, int**, int*)':
pooling3d_ops.cpp:(.text+0x36b0): multiple definition of `shape::concat(int, int, int**, int*)'
CMakeFiles/nd4jcpu.dir/cpu/NativeOps.cpp.o:NativeOps.cpp:(.text+0x5e10): first defined here
CMakeFiles/nd4jcpu.dir/__/include/ops/declarable/generic/convo/pooling3d_ops.cpp.o: In function `shape::sliceOffsetForTensor(int, int, int)':
pooling3d_ops.cpp:(.text+0x39e0): multiple definition of `shape::sliceOffsetForTensor(int, int, int)'
CMakeFiles/nd4jcpu.dir/cpu/NativeOps.cpp.o:NativeOps.cpp:(.text+0x6140): first defined here
CMakeFiles/nd4jcpu.dir/__/include/ops/declarable/generic/convo/pooling3d_ops.cpp.o: In function `shape::getOffset(long long, int*, int*, int*, int)':
pooling3d_ops.cpp:(.text+0x39f0): multiple definition of `shape::getOffset(long long, int*, int*, int*, int)'
CMakeFiles/n
./buildnativeoperations.sh -c cuda -cc 61
eval cmake3
PACKAGING = none
BUILD = release
CHIP = cuda
ARCH = x86-64
CHIP_VERSION =
GPU_COMPUTE_CAPABILITY = 61
EXPERIMENTAL = no
LIBRARY TYPE = dynamic
[INFO] Compiling 2 source files to /home/agibsonccc/code/nd4j/nd4j-common/target/test-classes
java.lang.IllegalArgumentException: URI has an authority component
at java.base/sun.nio.fs.UnixUriUtils.fromUri(UnixUriUtils.java:53)
at java.base/sun.nio.fs.UnixFileSystemProvider.getPath(UnixFileSystemProvider.java:99)
at java.base/java.nio.file.Paths.get(Paths.java:138)
at lombok.javac.apt.LombokFileObjects$Java9Compiler.wrap(LombokFileObjects.java:142)
at lombok.javac.apt.LombokFileObjects.createEmpty(LombokFileObjects.java:123)
at lombok.javac.apt.InterceptingJavaFileManager.getJavaFileForOutput(InterceptingJavaFileManager.java:47)
at jdk.compiler/com.sun.tools.javac.processing.JavacFiler.createSourceOrClassFile(JavacFiler.java:499)
at jdk.compiler/com.sun.tools.javac.processing.JavacFiler.createSourceFile(JavacFiler.java:425)
[agibsonccc@skymind-local libnd4j]$ ./buildnativeoperations.sh
eval cmake
PACKAGING = none
BUILD = release
CHIP = cpu
ARCH = x86-64
CHIP_VERSION =
GPU_COMPUTE_CAPABILITY = all
EXPERIMENTAL = no
LIBRARY TYPE = dynamic
ComputationGraphConfiguration conf = new NeuralNetConfiguration.Builder()
.updater(Updater.ADAM).adamMeanDecay(0.9).adamVarDecay(0.999)
.weightInit(WeightInit.XAVIER)
.learningRate(0.01)
.regularization(true).l2(0.01).l2Bias(0.01)
.graphBuilder()
.addInputs("in")
.addLayer("dense0", new DenseLayer.Builder().nIn(inputSize).nOut(layerSize)
.activation(Activation.TANH)
.dropOut(0)
ComputationGraphConfiguration conf = new NeuralNetConfiguration.Builder()
.updater(Updater.ADAM).adamMeanDecay(0.9).adamVarDecay(0.999)
.weightInit(WeightInit.XAVIER)
.learningRate(0.01)
.regularization(true).l2(0.01).l2Bias(0.01)
.graphBuilder()
.addInputs("in")
.addLayer("dense0", new DenseLayer.Builder().nIn(inputSize).nOut(layerSize)
.activation(Activation.TANH)
.dropOut(0)
Stacks at 2017-08-07 06:53:03 PM. Uptime is 2m 18s 800ms.
application-scheduler-1 State: SLEEPING CPU usage on sample: 3ms
java.lang.Thread.sleep(long) Thread.java (native)
akka.actor.LightArrayRevolverScheduler.waitNanos(long) Scheduler.scala:226
akka.actor.LightArrayRevolverScheduler$$anon$8.nextTick() Scheduler.scala:405
akka.actor.LightArrayRevolverScheduler$$anon$8.run() Scheduler.scala:375
java.lang.Thread.run() Thread.java:745
main-SendThread(localhost:2181) [DAEMON] State: WAITING IN NATIVE CPU usage on sample: 0ms
/usr/java/jdk1.8.0_101/bin/java -javaagent:/home/agibsonccc/ides/idea/lib/idea_rt.jar=36765:/home/agibsonccc/ides/idea/bin -Dfile.encoding=UTF-8 -classpath /usr/java/jdk1.8.0_101/jre/lib/charsets.jar:/usr/java/jdk1.8.0_101/jre/lib/deploy.jar:/usr/java/jdk1.8.0_101/jre/lib/ext/cldrdata.jar:/usr/java/jdk1.8.0_101/jre/lib/ext/dnsns.jar:/usr/java/jdk1.8.0_101/jre/lib/ext/jaccess.jar:/usr/java/jdk1.8.0_101/jre/lib/ext/jfxrt.jar:/usr/java/jdk1.8.0_101/jre/lib/ext/localedata.jar:/usr/java/jdk1.8.0_101/jre/lib/ext/nashorn.jar:/usr/java/jdk1.8.0_101/jre/lib/ext/sunec.jar:/usr/java/jdk1.8.0_101/jre/lib/ext/sunjce_provider.jar:/usr/java/jdk1.8.0_101/jre/lib/ext/sunpkcs11.jar:/usr/java/jdk1.8.0_101/jre/lib/ext/zipfs.jar:/usr/java/jdk1.8.0_101/jre/lib/javaws.jar:/usr/java/jdk1.8.0_101/jre/lib/jce.jar:/usr/java/jdk1.8.0_101/jre/lib/jfr.jar:/usr/java/jdk1.8.0_101/jre/lib/jfxswt.jar:/usr/java/jdk1.8.0_101/jre/lib/jsse.jar:/usr/java/jdk1.8.0_101/jre/lib/management-agent.jar:/usr/java/jdk1.8.0_101/jre/lib/plugin.jar:/usr/java/