{"action":"created","issue":{"url":"https://api.github.com/repos/torch/nn/issues/398","labels_url":"https://api.github.com/repos/torch/nn/issues/398/labels{/name}","comments_url":"https://api.github.com/repos/torch/nn/issues/398/comments","events_url":"https://api.github.com/repos/torch/nn/issues/398/events","html_url":"https://github.com/torch/nn/pull/398","id":108221761,"number":398,"title":"make nn.Linear handle 3D tensor","user":{"login":"blackyang","id":3350930,"avatar_url":"https://avatars.githubusercontent.com/u/3350930?v=3","gravatar_id":"","url":"https://api.github.com/users/blackyang","html_url":"https://github.com/blackyang","followers_url":"https://api.github.com/users/blackyang/followers","following_url":"https://api.github.com/users/blackyang/following{/other_user}","gists_url":"https://api.github.com/users/blackyang/gists{/gist_id}","starred_url":"https://api.github.com/users/blackyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackyang/subscriptions","organizations_url":"https://api.github.com/users/blackyang/orgs","repos_url":"https://api.github.com/users/blackyang/repos","events_url":"https://api.github.com/users/blackyang/events{/privacy}","received_events_url":"https://api.github.com/users/blackyang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-24T21:56:09Z","updated_at":"2015-09-25T03:40:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/torch/nn/pulls/398","html_url":"https://github.com/torch/nn/pull/398","diff_url":"https://github.com/torch/nn/pull/398.diff","patch_url":"https://github.com/torch/nn/pull/398.patch"},"body":"Make nn.Linear handle 3D tensor, see #396 issue for details\r\n\r\nBasically, when handling 3D tensor of shape (nb_batch, nb_length, nb_dim), I first resize it to (nb_batch *nb_length, nb_dim), do computation similar to that of handling 2D tensor, and then resize back to 3D tensor. I also add some test case in test.lua."},"comment":{"url":"https://api.github.com/repos/torch/nn/issues/comments/143113365","html_url":"https://github.com/torch/nn/pull/398#issuecomment-143113365","issue_url":"https://api.github.com/repos/torch/nn/issues/398","id":143113365,"user":{"login":"blackyang","id":3350930,"avatar_url":"https://avatars.githubusercontent.com/u/3350930?v=3","gravatar_id":"","url":"https://api.github.com/users/blackyang","html_url":"https://github.com/blackyang","followers_url":"https://api.github.com/users/blackyang/followers","following_url":"https://api.github.com/users/blackyang/following{/other_user}","gists_url":"https://api.github.com/users/blackyang/gists{/gist_id}","starred_url":"https://api.github.com/users/blackyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackyang/subscriptions","organizations_url":"https://api.github.com/users/blackyang/orgs","repos_url":"https://api.github.com/users/blackyang/repos","events_url":"https://api.github.com/users/blackyang/events{/privacy}","received_events_url":"https://api.github.com/users/blackyang/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T03:40:00Z","updated_at":"2015-09-25T03:40:00Z","body":"@szagoruyko  thanks for clarification, I would change resize() in my code into view()."}}