{"action":"closed","issue":{"url":"https://api.github.com/repos/Element-Research/rnn/issues/302","repository_url":"https://api.github.com/repos/Element-Research/rnn","labels_url":"https://api.github.com/repos/Element-Research/rnn/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/Element-Research/rnn/issues/302/comments","events_url":"https://api.github.com/repos/Element-Research/rnn/issues/302/events","html_url":"https://github.com/Element-Research/rnn/issues/302","id":166999007,"number":302,"title":"SeqLSTM : Only supports batch mode error","user":{"login":"avs20","id":9055117,"avatar_url":"https://avatars.githubusercontent.com/u/9055117?v=3","gravatar_id":"","url":"https://api.github.com/users/avs20","html_url":"https://github.com/avs20","followers_url":"https://api.github.com/users/avs20/followers","following_url":"https://api.github.com/users/avs20/following{/other_user}","gists_url":"https://api.github.com/users/avs20/gists{/gist_id}","starred_url":"https://api.github.com/users/avs20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avs20/subscriptions","organizations_url":"https://api.github.com/users/avs20/orgs","repos_url":"https://api.github.com/users/avs20/repos","events_url":"https://api.github.com/users/avs20/events{/privacy}","received_events_url":"https://api.github.com/users/avs20/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-22T08:50:59Z","updated_at":"2016-07-22T10:41:56Z","closed_at":"2016-07-22T10:41:55Z","body":"Hi all, \r\n\r\nI have 128x14x14 input and I am trying to feed it into the 4 parallel seqLSTM modules for processing. \r\n\r\nThe code is like this \r\n ```\r\n rnns = nn.Parallel(1,1)\r\n seqLSTM = nn.SeqLSTM(196,196)\r\n seqLSTM.batchfirst=true\r\n rnns:add(seqLSTM)\r\n rnns:add(seqLSTM)\r\n rnns:add(seqLSTM)\r\n rnns:add(seqLSTM)\r\n```\r\nI understand that the 196 passed above is only the input and the output size.  It was throwing error when I passed it 4x128x196  the error message came to be \r\n\r\n```\r\ndone\t\r\n/home/ashutosh/torch/install/share/lua/5.1/nn/Container.lua:67: \r\nIn 1 module of nn.Sequential:\r\nIn 1 module of nn.Sequential:\r\nIn 1 module of nn.Parallel:\r\n/home/ashutosh/torch/install/share/lua/5.1/rnn/SeqLSTM.lua:134: Only supports batch mode\r\nstack traceback:\r\n\t[C]: in function 'assert'\r\n\t/home/ashutosh/torch/install/share/lua/5.1/rnn/SeqLSTM.lua:134: in function '_prepare_size'\r\n\t/home/ashutosh/torch/install/share/lua/5.1/rnn/SeqLSTM.lua:169: in function </home/ashutosh/torch/install/share/lua/5.1/rnn/SeqLSTM.lua:167>\r\n\t[C]: in function 'xpcall'\r\n\t/home/ashutosh/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'\r\n\t/home/ashutosh/torch/install/share/lua/5.1/nn/Parallel.lua:18: in function </home/ashutosh/torch/install/share/lua/5.1/nn/Parallel.lua:10>\r\n\t[C]: in function 'xpcall'\r\n\t/home/ashutosh/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'\r\n\t...e/ashutosh/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function <...e/ashutosh/torch/install/share/lua/5.1/nn/Sequential.lua:41>\r\n\t[C]: in function 'xpcall'\r\n\t...\r\n\t[C]: in function 'xpcall'\r\n\t/home/ashutosh/torch/install/share/lua/5.1/itorch/main.lua:209: in function </home/ashutosh/torch/install/share/lua/5.1/itorch/main.lua:173>\r\n\t/home/ashutosh/torch/install/share/lua/5.1/lzmq/poller.lua:75: in function 'poll'\r\n\t.../ashutosh/torch/install/share/lua/5.1/lzmq/impl/loop.lua:307: in function 'poll'\r\n\t.../ashutosh/torch/install/share/lua/5.1/lzmq/impl/loop.lua:325: in function 'sleep_ex'\r\n\t.../ashutosh/torch/install/share/lua/5.1/lzmq/impl/loop.lua:370: in function 'start'\r\n\t/home/ashutosh/torch/install/share/lua/5.1/itorch/main.lua:381: in main chunk\r\n\t[C]: in function 'require'\r\n\t(command line):1: in main chunk\r\n\t[C]: at 0x00406670\r\n```\r\n\r\nSo how to pass the data in batch mode to seqLSTM or am I doing something fundamentally wrong?\r\n"}}
{"actor":{"display_login":"avs20"}}