yanwii / seq2seq

基于Pytorch的中文聊天机器人 集成BeamSearch算法
Apache License 2.0
241 stars 87 forks source link

No model error #15

Open haow85 opened 6 years ago

haow85 commented 6 years ago

我在执行 python seq2seq.py train 的时候遇到了下面的错误,请问应该如何解决?

(py365) ubuntu@i-o9tnhsxb:~/chatbot/seq2seq$ python seq2seq.py train While copying the parameter named encoder.embedding.weight, whose dimensions in the model are torch.Size([14, 100]) and whose dimensions in the checkpoint are torch.Size([600, 100]), ... inconsistent tensor size, expected tensor [14 x 100] and src [600 x 100] to have the same number of elements, but got 1400 and 60000 elements respectively at /pytorch/torch/lib/TH/generic/THTensorCopy.c:86 No model! Illegal instruction (core dumped)