wojzaremba / lstm

Apache License 2.0
663 stars 283 forks source link

attempt to call field 'LogSoftMax_updateOutput' (a nil value) #18

Open HaiboShi opened 8 years ago

HaiboShi commented 8 years ago

Hello, Thanks for your code. but when I tried your code, it always shows the problem that :

/home/shi/torch/install/share/lua/5.1/nn/LogSoftMax.lua:4: attempt to call field 'LogSoftMax_updateOutput' (a nil value) stack traceback: /home/shi/torch/install/share/lua/5.1/nn/LogSoftMax.lua:4: in function 'func' /home/shi/torch/install/share/lua/5.1/nngraph/gmodule.lua:252: in function 'neteval' /home/shi/torch/install/share/lua/5.1/nngraph/gmodule.lua:287: in function 'forward' main.lua:165: in function 'fp' main.lua:246: in function 'main' main.lua:280: in main chunk [C]: in function 'dofile' .../shi/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00406670

Any suggestion for that ? thanks!

taineleau-zz commented 8 years ago

Please make sure you have done:

$ luarocks install nngraph 
$ luarocks install optim
$ luarocks install nn
$ luarocks install cutorch
$ luarocks install cunn

in the terminal