jiweil / Neural-Dialogue-Generation

MIT License
829 stars 213 forks source link

lua/5.1/nn/LookupTable.lua:73: bad argument #3 to 'index' (Tensor | LongTensor expected, got torch.CudaLongTensor) #21

Closed m0dulo closed 4 years ago

m0dulo commented 4 years ago

{ start_halve : 6 source_max_length : 99 vocab_source : 29240 target_max_length : 82 save_prefix : "../model/model" gpu_index : 1 dimension : 300 test_file : "/home/MMI_data/s_test.txt" save_params_file : "../model/params" alpha : 0.1 dev_file : "/home/MMI_data/s_dev.txt" thres : 5 init_weight : 0.1 output_file : "../model/log" reverse : false saveFolder : "../model" train_file : "/home/MMI_data/s_train.txt" max_length : 100 dictPath : "/home/MMI_data/word.txt" batch_size : 32 max_iter : 8 dropout : 0.1 layers : 1 saveModel : true vocab_target : 29240 }