larspars / word-rnn

Recurrent Neural Network that predicts word-by-word
474 stars 103 forks source link

bad argument #2 to '?' (start index out of bound) #28

Open medori233 opened 6 years ago

medori233 commented 6 years ago

i'm new to both torch and lua, i ran across this issue, which drives me crazy: /home/handa/torch/install/bin/luajit: bad argument #2 to '?' (start index out of bound at /tmp/luarocks_torch-scm-1-9476/torch7/generic/Tensor.c:984) stack traceback: [C]: at 0x7f8ee1c75b70 [C]: in function 'index' /home/handa/DataHandler.lua:85: in function 'init' /home/handa/torch/install/share/lua/5.1/torch/init.lua:91: in function </home/handa/torch/install/share/lua/5.1/torch/init.lua:87> [C]: in function 'DataHandler' train_match.lua:51: in main chunk [C]: in function 'dofile' ...anda/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk [C]: at 0x00405d50

anyone can help me out? thanks a lot!

uoyevoli commented 6 years ago

hello, have you solved this problem? i have the same problem.