{"action":"created","issue":{"url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/85","labels_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/85/comments","events_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/85/events","html_url":"https://github.com/deeplearning4j/nd4j/issues/85","id":70888729,"number":85,"title":"Error with Nd4j.toFlattened(arr) - order for flattened tensor not correct","user":{"login":"c0der1337","id":6539636,"avatar_url":"https://avatars.githubusercontent.com/u/6539636?v=3","gravatar_id":"","url":"https://api.github.com/users/c0der1337","html_url":"https://github.com/c0der1337","followers_url":"https://api.github.com/users/c0der1337/followers","following_url":"https://api.github.com/users/c0der1337/following{/other_user}","gists_url":"https://api.github.com/users/c0der1337/gists{/gist_id}","starred_url":"https://api.github.com/users/c0der1337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c0der1337/subscriptions","organizations_url":"https://api.github.com/users/c0der1337/orgs","repos_url":"https://api.github.com/users/c0der1337/repos","events_url":"https://api.github.com/users/c0der1337/events{/privacy}","received_events_url":"https://api.github.com/users/c0der1337/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-25T10:18:51Z","updated_at":"2015-05-15T04:38:48Z","closed_at":"2015-05-15T04:38:48Z","body":"Numpy:\r\nIn [1]: import numpy as np\r\n\r\nIn [2]: w = np.random.random((2,2,2))\r\n\r\nIn [4]: w.flatten()\r\nOut[4]:\r\narray([ 0.63019179,  0.86873732,  0.32258349,  0.77040096,  0.43205056,\r\n        0.5644703 ,  0.75162634,  0.61234062])\r\n\r\nIn [5]: w\r\nOut[5]:\r\narray([[[ 0.63019179,  0.86873732],\r\n        [ 0.32258349,  0.77040096]],\r\n\r\n       [[ 0.43205056,  0.5644703 ],\r\n        [ 0.75162634,  0.61234062]]])\r\n\r\nND4J:\r\nINDArray w = Nd4j.rand(new int[]{2,2,2});\r\n\t\tSystem.out.println(\"w: \"+w);\r\n\t\tSystem.out.println(\"w flattened: \" + Nd4j.toFlattened(w));\r\n\r\nOutput:\r\nw: [[[0.4068617820739746, 0.2341649830341339]\r\n [0.10328156501054764, 0.9875390529632568]]\r\n[[0.47300493717193604, 0.6653125882148743]\r\n [0.02655656635761261, 0.007591337896883488]]\r\n\r\nw flattened: [0.4068617820739746, 0.47300493717193604, 0.10328156501054764, 0.02655656635761261, , ..., 0.6653125882148743, 0.9875390529632568, 0.007591337896883488]\r\n\r\nexpected:\r\n[0.4068617820739746, 0.2341649830341339, 0.10328156501054764, 0.9875390529632568, 0.47300493717193604, 0.6653125882148743, 0.02655656635761261, 0.007591337896883488"},"comment":{"url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/comments/102252315","html_url":"https://github.com/deeplearning4j/nd4j/issues/85#issuecomment-102252315","issue_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/85","id":102252315,"user":{"login":"agibsonccc","id":1144306,"avatar_url":"https://avatars.githubusercontent.com/u/1144306?v=3","gravatar_id":"","url":"https://api.github.com/users/agibsonccc","html_url":"https://github.com/agibsonccc","followers_url":"https://api.github.com/users/agibsonccc/followers","following_url":"https://api.github.com/users/agibsonccc/following{/other_user}","gists_url":"https://api.github.com/users/agibsonccc/gists{/gist_id}","starred_url":"https://api.github.com/users/agibsonccc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agibsonccc/subscriptions","organizations_url":"https://api.github.com/users/agibsonccc/orgs","repos_url":"https://api.github.com/users/agibsonccc/repos","events_url":"https://api.github.com/users/agibsonccc/events{/privacy}","received_events_url":"https://api.github.com/users/agibsonccc/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T04:38:48Z","updated_at":"2015-05-15T04:38:48Z","body":"Closing due to lack of response. Re open if this is an issue."}}