Skip to content

Instantly share code, notes, and snippets.

bikashg

Block or report user

Report or block bikashg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:20f62607df84ecefd34c18db32b25b87
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:294)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ExceptionInInitializerError
at org.nd4j.linalg.jcublas.buffer.BaseCudaDataBuffer.<clinit>(BaseCudaDataBuffer.java:72)
at org.nd4j.linalg.jcublas.buffer.factory.CudaDataBufferFactory.createFloat(CudaDataBufferFactory.java:251)
View gist:38392f803149443341396654f50f8a6d
public class CudaTester {
public static void main(String[] args) {
// This first line should be at the top to force the system to use several available GPUs. By default, it takes 1 GPU
CudaEnvironment.getInstance().getConfiguration().allowMultiGPU(true);
System.out.println("\n\n\nMultiple GPU Using Configuration Loaded ---- OK\n\n");
}
}
View gist:103719eec116bd6600df1ddd83b30035
bikash@albinoni:~/workspace/projects/srl$ mvn exec:java -Dexec.mainClass="utils.MyDeepNN.CoreClasses.CustomDataSetReader"
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for bikash:srl:jar:0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-enforcer-plugin is missing. @ line 45, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
View gist:7170f75966c4ef186573cc0171f4e684
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for bikash:srl:jar:0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-enforcer-plugin is missing. @ line 45, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
View gist:6650e1c0f2994e31efe51ed88e1f6390
/*
*
* * Copyright 2015 Skymind,Inc.
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
View gist:1462c9ad617d04aa30c82cda42172a68
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.factory.Nd4j;
public class Test {
public static void main(String[] args) {
INDArray two_by_one = Nd4j.zeros(2,1);
INDArray one_by_two = Nd4j.ones(1,2);
INDArray result = two_by_one.add(one_by_two);
System.out.println("result = "+result);
}
View gist:31f88e958b23783f8dc74b4e6ed5f498
[WARNING] thread Thread[ResourceGC thread 0,5,utils.MyRNN.RunMYRNN] was interrupted but is still alive after waiting at least 14999msecs
[WARNING] thread Thread[ResourceGC thread 0,5,utils.MyRNN.RunMYRNN] will linger despite being asked to die via interruption
[WARNING] thread Thread[ResourceGC thread 1,5,utils.MyRNN.RunMYRNN] will linger despite being asked to die via interruption
[WARNING] thread Thread[ResourceGC thread 2,5,utils.MyRNN.RunMYRNN] will linger despite being asked to die via interruption
[WARNING] thread Thread[ResourceGC thread 3,5,utils.MyRNN.RunMYRNN] will linger despite being asked to die via interruption
[WARNING] thread Thread[UniGC thread 0,5,utils.MyRNN.RunMYRNN] will linger despite being asked to die via interruption
[WARNING] thread Thread[UniGC thread 1,5,utils.MyRNN.RunMYRNN] will linger despite being asked to die via interruption
[WARNING] thread Thread[UniGC thread 2,5,utils.MyRNN.RunMYRNN] will linger despite being asked to die via interruption
[WARNING] thread Thread[UniGC thre
View gist:41e641e706ebbc95bf89d621b07e411d
09:11:00.135 [main] INFO org.nd4j.nativeblas.Nd4jBlas - Number of threads used for BLAS: 4
09:11:01.558 [main] INFO o.d.o.l.ScoreIterationListener - Score at iteration 0 is 72.24593505859374
09:11:02.996 [main] INFO o.d.o.l.ScoreIterationListener - Score at iteration 1 is 13.998971557617187
09:11:03.688 [main] INFO o.d.o.l.ScoreIterationListener - Score at iteration 2 is 1.2472177505493165
Running for epochs : 1
09:11:05.214 [main] INFO o.d.o.l.ScoreIterationListener - Score at iteration 3 is 71.99242553710937
09:11:06.477 [main] INFO o.d.o.l.ScoreIterationListener - Score at iteration 4 is 13.928001403808594
09:11:07.151 [main] INFO o.d.o.l.ScoreIterationListener - Score at iteration 5 is 1.23978271484375
Running for epochs : 2
09:11:08.587 [main] INFO o.d.o.l.ScoreIterationListener - Score at iteration 6 is 71.7451416015625
View gist:826386d3152fc02d41cccd06b827be82
Running for epochs : 0
09:29:50.595 [main] INFO org.nd4j.nativeblas.Nd4jBlas - Number of threads used for BLAS: 4
09:29:55.245 [main] INFO o.d.o.l.ScoreIterationListener - Score at iteration 0 is 87.54283447265625
Running for epochs : 1
09:29:59.489 [main] INFO o.d.o.l.ScoreIterationListener - Score at iteration 1 is 87.127880859375
Running for epochs : 2
09:30:03.906 [main] INFO o.d.o.l.ScoreIterationListener - Score at iteration 2 is 86.71815795898438
Running for epochs : 3
09:30:08.074 [main] INFO o.d.o.l.ScoreIterationListener - Score at iteration 3 is 86.29917602539062
Running for epochs : 4
View gist:19ccbac2e03bc0c7e3239fbd2d716fc1
Running for epochs : 0
09:11:00.135 [main] INFO org.nd4j.nativeblas.Nd4jBlas - Number of threads used for BLAS: 4
09:11:01.558 [main] INFO o.d.o.l.ScoreIterationListener - Score at iteration 0 is 72.24593505859374
09:11:02.996 [main] INFO o.d.o.l.ScoreIterationListener - Score at iteration 1 is 13.998971557617187
09:11:03.688 [main] INFO o.d.o.l.ScoreIterationListener - Score at iteration 2 is 1.2472177505493165
Running for epochs : 1
09:11:05.214 [main] INFO o.d.o.l.ScoreIterationListener - Score at iteration 3 is 71.99242553710937
09:11:06.477 [main] INFO o.d.o.l.ScoreIterationListener - Score at iteration 4 is 13.928001403808594
09:11:07.151 [main] INFO o.d.o.l.ScoreIterationListener - Score at iteration 5 is 1.23978271484375
Running for epochs : 2
You can’t perform that action at this time.