{"action":"created","issue":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/4575","repository_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j","labels_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/4575/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/4575/comments","events_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/4575/events","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/4575","id":292901207,"number":4575,"title":"ExceptionInInitializerError, VariationalAutoencoder Net","user":{"login":"amoellmann","id":18192409,"avatar_url":"https://avatars0.githubusercontent.com/u/18192409?v=4","gravatar_id":"","url":"https://api.github.com/users/amoellmann","html_url":"https://github.com/amoellmann","followers_url":"https://api.github.com/users/amoellmann/followers","following_url":"https://api.github.com/users/amoellmann/following{/other_user}","gists_url":"https://api.github.com/users/amoellmann/gists{/gist_id}","starred_url":"https://api.github.com/users/amoellmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amoellmann/subscriptions","organizations_url":"https://api.github.com/users/amoellmann/orgs","repos_url":"https://api.github.com/users/amoellmann/repos","events_url":"https://api.github.com/users/amoellmann/events{/privacy}","received_events_url":"https://api.github.com/users/amoellmann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-01-30T19:06:41Z","updated_at":"2018-02-07T18:16:16Z","closed_at":"2018-02-07T18:13:26Z","author_association":"NONE","body":"#### Issue Description\r\n\r\n```\r\n18:38:13.730 [main] INFO org.nd4j.linalg.factory.Nd4jBackend - Loaded [JCublasBackend] backend\r\n18:38:13.777 [main] WARN org.reflections.Reflections - given scan urls are empty. set urls in the configuration\r\n18:39:27.335 [main] INFO org.nd4j.nativeblas.NativeOpsHolder - Number of threads used for NativeOps: 32\r\nException in thread \"main\" java.lang.ExceptionInInitializerError\r\n\tat de.amoellma.Main.setupNet1(Main.java:41)\r\n\tat de.amoellma.Main.main(Main.java:26)\r\nCaused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException\r\n\tat org.nd4j.linalg.factory.Nd4j.initWithBackend(Nd4j.java:6441)\r\n\tat org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:6309)\r\n\tat org.nd4j.linalg.factory.Nd4j.<clinit>(Nd4j.java:205)\r\n\t... 2 more\r\nCaused by: java.lang.reflect.InvocationTargetException\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:423)\r\n\tat org.nd4j.linalg.factory.Nd4j.initWithBackend(Nd4j.java:6416)\r\n\t... 4 more\r\nCaused by: java.lang.ExceptionInInitializerError\r\n\tat org.nd4j.linalg.jcublas.JCublasNDArrayFactory.<init>(JCublasNDArrayFactory.java:86)\r\n\t... 9 more\r\nCaused by: java.lang.IllegalStateException: Can't create new cuBLAS handle! cusolverDn errorCode: [7] from cusolverDnCreate()\r\n\tat org.nd4j.jita.allocator.context.impl.BasicContextPool.createNewSolverHandle(BasicContextPool.java:205)\r\n\tat org.nd4j.jita.allocator.context.impl.LimitedContextPool.fillPoolWithResources(LimitedContextPool.java:91)\r\n\tat org.nd4j.jita.allocator.context.impl.LimitedContextPool.<init>(LimitedContextPool.java:56)\r\n\tat org.nd4j.jita.handler.impl.CudaZeroHandler.<init>(CudaZeroHandler.java:131)\r\n\tat org.nd4j.jita.allocator.impl.AtomicAllocator.<init>(AtomicAllocator.java:128)\r\n\tat org.nd4j.jita.allocator.impl.AtomicAllocator.<clinit>(AtomicAllocator.java:74)\r\n... 10 more\r\n```\r\n\r\n#### Version Information\r\n\r\nPlease indicate relevant versions, including, if relevant:\r\n\r\n* Deeplearning4j version:                 0.9.2-SNAPSHOT (0.9.2-20180129.140858)\r\n* platform information (OS, etc):       ubuntu 16.04\r\n* CUDA version, if used                    \r\n\r\n```\r\nnvcc: NVIDIA (R) Cuda compiler driver\r\nCopyright (c) 2005-2016 NVIDIA Corporation\r\nBuilt on Tue_Jan_10_13:22:03_CST_2017\r\nCuda compilation tools, release 8.0, V8.0.61\r\n```\r\n\r\n* NVIDIA driver version, if in use \r\n\r\n```\r\nNVIDIA-SMI 384.111                Driver Version: 384.111   \r\n Tesla P100-PCIE...  \r\n```\r\n\r\n\r\n#### Example\r\n\r\n```java\r\n   public static void main(String[] args) throws IOException {\r\n\r\n        MnistDataSetIterator iter = new MnistDataSetIterator(64, true, 1234);\r\n        MultiLayerNetwork net = setupNet1(iter.inputColumns());\r\n        net.init();\r\n        net.fit(iter);\r\n    }\r\n\r\n    private static MultiLayerNetwork setupNet1(int nInput) throws IOException {\r\n\r\n        double initLearningRate = 0.01;\r\n        double lrDecay = 0.8;\r\n        int lrDecayStep = 35000;\r\n        Adam updater = new Adam(\r\n                new StepSchedule(ScheduleType.ITERATION, initLearningRate, lrDecay, lrDecayStep));\r\n\r\n        double l2Regularization = 1E-4;\r\n        int seed = 1234;\r\n        MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\r\n                .trainingWorkspaceMode(WorkspaceMode.SINGLE)\r\n                .inferenceWorkspaceMode(WorkspaceMode.SINGLE)\r\n                .seed(seed)\r\n                .updater(updater)\r\n                .weightInit(WeightInit.XAVIER)\r\n                .l2(l2Regularization)\r\n                .gradientNormalization(GradientNormalization.RenormalizeL2PerLayer)\r\n                .list()\r\n                .layer(0, new VariationalAutoencoder.Builder()\r\n                        .activation(Activation.LEAKYRELU)\r\n                        .encoderLayerSizes(1000, 500, 250, 125)\r\n                        .decoderLayerSizes(125, 250, 500, 1000)\r\n                        .pzxActivationFunction(Activation.IDENTITY)\r\n                        .reconstructionDistribution(new GaussianReconstructionDistribution(Activation.SIGMOID.getActivationFunction()))\r\n                        .nIn(nInput)\r\n                        .nOut(6)\r\n                        .build())\r\n                .pretrain(true).backprop(false).build();\r\n\r\n        MultiLayerNetwork net = new MultiLayerNetwork(conf);\r\n        net.setListeners(new ScoreIterationListener(100));\r\n        return net;\r\n}\r\n```\r\n\r\n```xml\r\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n         xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\r\n\r\n    <modelVersion>4.0.0</modelVersion>\r\n    <groupId>de.amoellma</groupId>\r\n    <artifactId>a</artifactId>\r\n    <version>0.1-SNAPSHOT</version>\r\n    <packaging>jar</packaging>\r\n    <name>GpuErrRepr</name>\r\n\r\n    <properties>\r\n        <jersey.version>2.23.2</jersey.version>\r\n\r\n        <!-- for snapshot: -->\r\n         <nd4j.backend>nd4j-cuda-8.0</nd4j.backend>\r\n\r\n        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r\n        <shadedClassifier>bin</shadedClassifier>\r\n        <java.version>1.8</java.version>\r\n        <maven.compiler.source>1.8</maven.compiler.source>\r\n        <maven.compiler.target>1.8</maven.compiler.target>\r\n\r\n        <nd4j.version>0.9.2-SNAPSHOT</nd4j.version>\r\n        <dl4j.version>0.9.2-SNAPSHOT</dl4j.version>\r\n        <datavec.version>0.9.2-SNAPSHOT</datavec.version>\r\n        <arbiter.version>0.9.2-SNAPSHOT</arbiter.version>\r\n        <rl4j.version>0.9.2-SNAPSHOT</rl4j.version>\r\n\r\n        <jackson.version>2.6.6</jackson.version>\r\n\r\n        <dl4j.spark.version>0.9.1_spark_2</dl4j.spark.version>\r\n        <datavec.spark.version>0.9.1_spark_2</datavec.spark.version>\r\n\r\n        <!-- Scala binary version: DL4J's Spark and UI functionality are released with both Scala 2.10 and 2.11 support -->\r\n        <scala.binary.version>2.11</scala.binary.version>\r\n\r\n        <guava.version>19.0</guava.version>\r\n        <logback.version>1.1.7</logback.version>\r\n        <jfreechart.version>1.0.13</jfreechart.version>\r\n        <maven-shade-plugin.version>2.4.3</maven-shade-plugin.version>\r\n        <exec-maven-plugin.version>1.4.0</exec-maven-plugin.version>\r\n    </properties>\r\n\r\n    <repositories>\r\n        <repository>\r\n            <id>snapshots-repo</id>\r\n            <url>https://oss.sonatype.org/content/repositories/snapshots</url>\r\n            <releases>\r\n                <enabled>false</enabled>\r\n            </releases>\r\n            <snapshots>\r\n                <enabled>true</enabled>\r\n            </snapshots>\r\n        </repository>\r\n    </repositories>\r\n\r\n    <distributionManagement>\r\n        <snapshotRepository>\r\n            <id>sonatype-nexus-snapshots</id>\r\n            <name>Sonatype Nexus snapshot repository</name>\r\n            <url>https://oss.sonatype.org/content/repositories/snapshots</url>\r\n        </snapshotRepository>\r\n        <repository>\r\n            <id>nexus-releases</id>\r\n            <name>Nexus Release Repository</name>\r\n            <url>http://oss.sonatype.org/service/local/staging/deploy/maven3/</url>\r\n        </repository>\r\n    </distributionManagement>\r\n\r\n    <dependencyManagement>\r\n        <dependencies>\r\n\r\n            <!-- overrides the older jersey version in deeplearning4j-ui -->\r\n            <dependency>\r\n                <groupId>org.glassfish.jersey</groupId>\r\n                <artifactId>jersey-bom</artifactId>\r\n                <version>${jersey.version}</version>\r\n                <type>pom</type>\r\n                <scope>import</scope>\r\n            </dependency>\r\n\r\n            <!-- for snapshot -->\r\n            <dependency>\r\n                <groupId>org.nd4j</groupId>\r\n                <artifactId>nd4j-native</artifactId>\r\n                <version>${nd4j.version}</version>\r\n            </dependency>\r\n            <dependency>\r\n                <groupId>org.nd4j</groupId>\r\n                <artifactId>nd4j-cuda-8.0</artifactId>\r\n                <version>${nd4j.version}</version>\r\n            </dependency>\r\n\r\n        </dependencies>\r\n    </dependencyManagement>\r\n\r\n    <dependencies>\r\n        <dependency>\r\n            <groupId>ch.qos.logback</groupId>\r\n            <artifactId>logback-classic</artifactId>\r\n            <version>1.2.3</version>\r\n        </dependency>\r\n\r\n        <!-- ND4J backend. You need one in every DL4J project. Normally define artifactId as either \"nd4j-native-platform\" or \"nd4j-cuda-7.5-platform\" -->\r\n        <dependency>\r\n            <groupId>org.nd4j</groupId>\r\n            <artifactId>${nd4j.backend}</artifactId>\r\n        </dependency>\r\n\r\n        <dependency>\r\n            <groupId>org.slf4j</groupId>\r\n            <artifactId>log4j-over-slf4j</artifactId>\r\n            <version>1.7.25</version>\r\n        </dependency>\r\n\r\n        <dependency>\r\n            <groupId>org.datavec</groupId>\r\n            <artifactId>datavec-api</artifactId>\r\n            <version>${datavec.version}</version>\r\n            <exclusions>\r\n                <exclusion>\r\n                    <groupId>org.slf4j</groupId>\r\n                    <artifactId>slf4j-api</artifactId>\r\n                </exclusion>\r\n                <exclusion>\r\n                    <groupId>org.slf4j</groupId>\r\n                    <artifactId>slf4j-log4j12</artifactId>\r\n                </exclusion>\r\n                <exclusion>\r\n                    <groupId>log4j</groupId>\r\n                    <artifactId>log4j</artifactId>\r\n                </exclusion>\r\n            </exclusions>\r\n        </dependency>\r\n\r\n        <!-- Core DL4J functionality -->\r\n        <dependency>\r\n            <groupId>org.deeplearning4j</groupId>\r\n            <artifactId>deeplearning4j-core</artifactId>\r\n            <version>${dl4j.version}</version>\r\n        </dependency>\r\n\r\n        <dependency>\r\n            <groupId>org.deeplearning4j</groupId>\r\n            <artifactId>deeplearning4j-nlp</artifactId>\r\n            <version>${dl4j.version}</version>\r\n        </dependency>\r\n\r\n        <!-- Force guava versions for using UI/HistogramIterationListener -->\r\n        <dependency>\r\n            <groupId>com.google.guava</groupId>\r\n            <artifactId>guava</artifactId>\r\n            <version>${guava.version}</version>\r\n        </dependency>\r\n\r\n        <!-- Used in the feedforward/classification/MLP* and feedforward/regression/RegressionMathFunctions example -->\r\n        <dependency>\r\n            <groupId>jfree</groupId>\r\n            <artifactId>jfreechart</artifactId>\r\n            <version>${jfreechart.version}</version>\r\n        </dependency>\r\n\r\n        <!-- Arbiter - used for hyperparameter optimization (grid/random search) -->\r\n        <dependency>\r\n            <groupId>org.deeplearning4j</groupId>\r\n            <artifactId>arbiter-deeplearning4j</artifactId>\r\n            <version>${arbiter.version}</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>org.deeplearning4j</groupId>\r\n            <artifactId>arbiter-ui_2.11</artifactId>\r\n            <version>${arbiter.version}</version>\r\n        </dependency>\r\n\r\n        <dependency>\r\n            <groupId>junit</groupId>\r\n            <artifactId>junit</artifactId>\r\n            <version>4.12</version>\r\n            <scope>test</scope>\r\n        </dependency>\r\n    </dependencies>\r\n\r\n    <build>\r\n        <plugins>\r\n          <plugin>\r\n              <groupId>org.apache.maven.plugins</groupId>\r\n              <artifactId>maven-shade-plugin</artifactId>\r\n              <version>${maven-shade-plugin.version}</version>\r\n              <configuration>\r\n                  <shadedArtifactAttached>true</shadedArtifactAttached>\r\n                  <shadedClassifierName>${shadedClassifier}</shadedClassifierName>\r\n                  <createDependencyReducedPom>true</createDependencyReducedPom>\r\n                  <filters>\r\n                      <filter>\r\n                          <artifact>*:*</artifact>\r\n                          <excludes>\r\n                              <exclude>org/datanucleus/**</exclude>\r\n                              <exclude>META-INF/*.SF</exclude>\r\n                              <exclude>META-INF/*.DSA</exclude>\r\n                              <exclude>META-INF/*.RSA</exclude>\r\n                          </excludes>\r\n                      </filter>\r\n                  </filters>\r\n              </configuration>\r\n              <executions>\r\n                  <execution>\r\n                      <phase>package</phase>\r\n                      <goals>\r\n                          <goal>shade</goal>\r\n                      </goals>\r\n                      <configuration>\r\n                          <transformers>\r\n                              <transformer implementation=\"org.apache.maven.plugins.shade.resource.AppendingTransformer\">\r\n                                  <resource>reference.conf</resource>\r\n                              </transformer>\r\n                              <transformer implementation=\"org.apache.maven.plugins.shade.resource.ServicesResourceTransformer\"/>\r\n                              <transformer implementation=\"org.apache.maven.plugins.shade.resource.ManifestResourceTransformer\">\r\n                                   <mainClass>de.amoellma.Main</mainClass>\r\n                              </transformer>\r\n                          </transformers>\r\n                      </configuration>\r\n                  </execution>\r\n              </executions>\r\n          </plugin>\r\n\r\n            <plugin>\r\n                <groupId>org.apache.maven.plugins</groupId>\r\n                <artifactId>maven-compiler-plugin</artifactId>\r\n                <version>3.5.1</version>\r\n                <configuration>\r\n                    <source>${java.version}</source>\r\n                    <target>${java.version}</target>\r\n                </configuration>\r\n            </plugin>\r\n\r\n            <plugin>\r\n                <groupId>org.codehaus.mojo</groupId>\r\n                <artifactId>exec-maven-plugin</artifactId>\r\n                <version>${exec-maven-plugin.version}</version>\r\n                <executions>\r\n                    <execution>\r\n                        <goals>\r\n                            <goal>exec</goal>\r\n                        </goals>\r\n                    </execution>\r\n                </executions>\r\n                <configuration>\r\n                    <executable>java</executable>\r\n                </configuration>\r\n            </plugin>\r\n        </plugins>\r\n    </build>\r\n</project>\r\n```\r\n\r\n----\r\n*Update:*\r\n\r\nexact snapshot: 0.9.2-20180129.140858q\r\n"},"comment":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/comments/363860514","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/4575#issuecomment-363860514","issue_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/4575","id":363860514,"user":{"login":"amoellmann","id":18192409,"avatar_url":"https://avatars0.githubusercontent.com/u/18192409?v=4","gravatar_id":"","url":"https://api.github.com/users/amoellmann","html_url":"https://github.com/amoellmann","followers_url":"https://api.github.com/users/amoellmann/followers","following_url":"https://api.github.com/users/amoellmann/following{/other_user}","gists_url":"https://api.github.com/users/amoellmann/gists{/gist_id}","starred_url":"https://api.github.com/users/amoellmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amoellmann/subscriptions","organizations_url":"https://api.github.com/users/amoellmann/orgs","repos_url":"https://api.github.com/users/amoellmann/repos","events_url":"https://api.github.com/users/amoellmann/events{/privacy}","received_events_url":"https://api.github.com/users/amoellmann/received_events","type":"User","site_admin":false},"created_at":"2018-02-07T18:16:16Z","updated_at":"2018-02-07T18:16:16Z","author_association":"NONE","body":"Thats great, thank you!! \r\n\r\nwrote a tiny howto on how to use docker for testing all available CUDA environments, on a single computer https://github.com/amoellmann/cuda_fun/blob/master/README.md :-)"}}
{"actor":{"display_login":"amoellmann"}}