yoonkim / lstm-char-cnn

LSTM language model with CNN over characters
MIT License
826 stars 221 forks source link

error in cuda version #14

Open attardi opened 8 years ago

attardi commented 8 years ago

Trying to run the cuda version I get this error:

luajit: ~/tools/torch/install/share/lua/5.1/nn/THNN.lua:804: wrong number of arguments for function call stack traceback: [C]: in function 'v' ~/tools/torch/install/share/lua/5.1/nn/THNN.lua:804: in function 'LookupTable_accGradParameters' ~/tools/torch/install/share/lua/5.1/nn/LookupTable.lua:73: in function 'accGradParameters' ~/tools/torch/install/share/lua/5.1/nngraph/gmodule.lua:409: in function 'neteval' ~/tools/torch/install/share/lua/5.1/nngraph/gmodule.lua:420: in function 'accGradParameters' ~/tools/torch/install/share/lua/5.1/nn/Module.lua:31: in function 'backward' ./util/HLogSoftMax.lua:91: in function 'updateGradInput' ./util/HLogSoftMax.lua:98: in function 'backward' main.lua:327: in function 'feval' main.lua:380: in main chunk [C]: at 0x00406670

attardi commented 8 years ago

I fixed this by pulling the latest nn fromL

https://github.com/torch/nn