{"action":"created","issue":{"url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/449","labels_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/449/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/449/comments","events_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/449/events","html_url":"https://github.com/deeplearning4j/nd4j/issues/449","id":110514628,"number":449,"title":"CNN's throwing an index out of bounds error on Nd4j master","user":{"login":"nyghtowl","id":3422837,"avatar_url":"https://avatars.githubusercontent.com/u/3422837?v=3","gravatar_id":"","url":"https://api.github.com/users/nyghtowl","html_url":"https://github.com/nyghtowl","followers_url":"https://api.github.com/users/nyghtowl/followers","following_url":"https://api.github.com/users/nyghtowl/following{/other_user}","gists_url":"https://api.github.com/users/nyghtowl/gists{/gist_id}","starred_url":"https://api.github.com/users/nyghtowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyghtowl/subscriptions","organizations_url":"https://api.github.com/users/nyghtowl/orgs","repos_url":"https://api.github.com/users/nyghtowl/repos","events_url":"https://api.github.com/users/nyghtowl/events{/privacy}","received_events_url":"https://api.github.com/users/nyghtowl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deeplearning4j/nd4j/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-08T18:31:53Z","updated_at":"2015-10-08T20:18:55Z","closed_at":null,"body":"Currently CNN examples in snapshot throw the index out of bounds error on -1. From digging the following points are what I've found so far on where this issue is coming from:\r\n\r\n- in Convolution under preOutput the calc to add bias to z\r\n- based on addi call, in DefaultOpExecutioner it lands in the for loop to apply \"putScalarUnsafe\" method on line 90\r\n- After one iteration it goes to BaseNDArray elementWiseStride and attemptedToFindElementWiseStride is true so it returns elementWiseStride of -1\r\nIt's failing on BaseNDArray getDoubleUnsafe (called on x) because it's passing in -1. So it's trying to pull a value out of data vector at position -1.\r\n\r\n\r\nThe issue started on PST morning of Oct 7th and if we roll back to the sha: b63252824c3cd6761008cba2abfc3aae6c32509c then it will work. So the commits on Oct 6th are where the problem started.\r\n"},"comment":{"url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/comments/146674489","html_url":"https://github.com/deeplearning4j/nd4j/issues/449#issuecomment-146674489","issue_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/449","id":146674489,"user":{"login":"drlebedev","id":5178008,"avatar_url":"https://avatars.githubusercontent.com/u/5178008?v=3","gravatar_id":"","url":"https://api.github.com/users/drlebedev","html_url":"https://github.com/drlebedev","followers_url":"https://api.github.com/users/drlebedev/followers","following_url":"https://api.github.com/users/drlebedev/following{/other_user}","gists_url":"https://api.github.com/users/drlebedev/gists{/gist_id}","starred_url":"https://api.github.com/users/drlebedev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drlebedev/subscriptions","organizations_url":"https://api.github.com/users/drlebedev/orgs","repos_url":"https://api.github.com/users/drlebedev/repos","events_url":"https://api.github.com/users/drlebedev/events{/privacy}","received_events_url":"https://api.github.com/users/drlebedev/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T20:18:55Z","updated_at":"2015-10-08T20:18:55Z","body":"I updated GravesLSTM tests to reproduce this issue and submitted PR: \r\n\r\nhttps://github.com/deeplearning4j/deeplearning4j/pull/773 "}}