macournoyer / neuralconvo

Neural conversational model in Torch
776 stars 347 forks source link

SequencerCriterion.lua:42: expecting target table #32

Closed kenkit closed 8 years ago

kenkit commented 8 years ago

stormy@stormy-desktop:/media/stormy/Digital-Data/AI/neuralconvo$ th train.lua --dataset 1000 --hiddenSize 1000 -- Loading dataset
Loading vocabulary from data/vocab.t7 ...

Dataset stats:
Vocabulary size: 25931
Examples: 83632

-- Epoch 1 / 50 /home/stormy/torch/install/bin/luajit: ...y/torch/install/share/lua/5.1/rnn/SequencerCriterion.lua:42: expecting target table stack traceback: [C]: in function 'assert' ...y/torch/install/share/lua/5.1/rnn/SequencerCriterion.lua:42: in function 'forward' ./seq2seq.lua:74: in function 'train' train.lua:85: in main chunk [C]: in function 'dofile' ...ormy/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00405d50

kenkit commented 8 years ago

Here is the solution.

coreybobco commented 4 hours ago

This was broken by this commit to the rnn dependency--Element-Research/rnn@a1373c4 if you checkout rnn directly from Github, revert to the commit before this one (git checkout 14aff64132aa90339b6d510604a2b090f6509300 ), and then copy and paste all the .lua files from your rnn checkout directory to the torch rnn dependency subdirectory (in your case /torch/install/share/lua/5.1/rnn/ ) it will work.