{"action":"opened","issue":{"url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/1309","repository_url":"https://api.github.com/repos/deeplearning4j/nd4j","labels_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/1309/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/1309/comments","events_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/1309/events","html_url":"https://github.com/deeplearning4j/nd4j/issues/1309","id":180334341,"number":1309,"title":"Crash on Ubuntu 14.04 with nd4j-cuda-7.5 backend; works with native","user":{"login":"Prechtig","id":1157812,"avatar_url":"https://avatars.githubusercontent.com/u/1157812?v=3","gravatar_id":"","url":"https://api.github.com/users/Prechtig","html_url":"https://github.com/Prechtig","followers_url":"https://api.github.com/users/Prechtig/followers","following_url":"https://api.github.com/users/Prechtig/following{/other_user}","gists_url":"https://api.github.com/users/Prechtig/gists{/gist_id}","starred_url":"https://api.github.com/users/Prechtig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prechtig/subscriptions","organizations_url":"https://api.github.com/users/Prechtig/orgs","repos_url":"https://api.github.com/users/Prechtig/repos","events_url":"https://api.github.com/users/Prechtig/events{/privacy}","received_events_url":"https://api.github.com/users/Prechtig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-30T15:34:00Z","updated_at":"2016-09-30T15:34:00Z","closed_at":null,"body":"When running dl4j using the CUDA backend I get a `java.lang.NullPointerException`.\r\nWhen running with the native backend it works.\r\n\r\nThis is the nn layout\r\n```\r\nBuilder builder = new NeuralNetConfiguration.Builder()\r\n\t\t.seed(98)\r\n\t\t.iterations(1)\r\n\t\t.regularization(true)\r\n\t\t.l2(0.0005)\r\n\t\t.learningRate(0.008)\r\n\t\t.weightInit(WeightInit.XAVIER)\r\n\t\t.activation(\"relu\")\r\n\t\t.optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT)\r\n\t\t.updater(Updater.NESTEROVS).momentum(0.9)\r\n\t\t.list()\r\n\t\t.layer(0, new ConvolutionLayer.Builder()\r\n\t\t\t\t.name(\"layer0\")\r\n\t\t\t\t.kernelSize(4, 4)\r\n\t\t\t\t.nIn(3)\r\n\t\t\t\t.stride(2, 2)\r\n\t\t\t\t.nOut(20)\r\n\t\t\t\t.padding(1, 1)\r\n\t\t\t\t.dropOut(0.5)\r\n\t\t\t\t.activation(\"relu\")\r\n\t\t\t\t.build())\r\n\t\t.layer(1,\r\n\t\t\t\tnew SubsamplingLayer.Builder(SubsamplingLayer.PoolingType.MAX)\r\n\t\t\t\t.name(\"layer1\")\r\n\t\t\t\t.kernelSize(2, 2)\r\n\t\t\t\t.stride(2, 2)\r\n\t\t\t\t.build())\r\n\t\t.layer(2, new ConvolutionLayer.Builder()\r\n\t\t\t\t.name(\"layer2\")\r\n\t\t\t\t.kernelSize(3, 3)\r\n\t\t\t\t.nIn(20)\r\n\t\t\t\t.stride(1, 1)\r\n\t\t\t\t.nOut(20)\r\n\t\t\t\t.padding(1,1)\r\n\t\t\t\t.dropOut(0.5)\r\n\t\t\t\t.activation(\"relu\")\r\n\t\t\t\t.build())\r\n\t\t.layer(3,\r\n\t\t\t\tnew SubsamplingLayer.Builder(SubsamplingLayer.PoolingType.MAX)\r\n\t\t\t\t.name(\"layer3\")\r\n\t\t\t\t.kernelSize(2, 2)\r\n\t\t\t\t.stride(2, 2)\r\n\t\t\t\t.build())\r\n\t\t.layer(4, new DenseLayer.Builder()\r\n\t\t\t\t.name(\"layer4\")\r\n\t\t\t\t.activation(\"relu\")\r\n\t\t\t\t.nOut(200)\r\n\t\t\t\t.build())\r\n\t\t.layer(5, new OutputLayer.Builder(LossFunctions.LossFunction.SQUARED_LOSS)\r\n\t\t\t\t.name(\"layer5\")\r\n\t\t\t\t.nOut(featureCount)\r\n\t\t\t\t.activation(\"identity\")\r\n\t\t\t\t.build())\r\n\t\t.backprop(true).pretrain(false)\r\n\t\t.setInputType(InputType.convolutionalFlat(height, width, 3));\r\n```\r\n \r\nThe output of the CUDA run is found here:\r\nhttps://gist.github.com/Prechtig/ab03ed3b98e29c9d47563ce5ff97ff33"}}
{"actor":{"display_login":"Prechtig"}}