Traceback (most recent call last):


 "main.py", line 449, in <module>

decode_results = load_model_decode(model_dir, data, 'raw', gpu, seg)


 "main.py", line 355, in load_model_decode

speed, acc, p, r, f, pred_results = evaluate(data, model, name)


 "main.py", line 153, in evaluate

tag_seq = model(gaz_list,batch_word, batch_biword, batch_wordlen, batch_char, batch_charlen, batch_charrecover, mask)


 "C:\Users\jmy\Anaconda3\envs\python3.7\lib\site-packages\torch\nn\modules\module.py", line 547, in __call__

result = self.forward(*input, **kwargs)


 "C:\Users\jmy\PycharmProjects\LatticeLSTM\model\bilstmcrf.py", line 42, in forward

scores, tag_seq = self.crf._viterbi_decode(outs, mask)


 "C:\Users\jmy\PycharmProjects\LatticeLSTM\model\crf.py", line 171, in _viterbi_decode

last_partition = torch.gather(partition_history, 1, last_position).view(batch_size,tag_size,1)
RuntimeError: Invalid index in gather at C:\w\1\s\tmp_conda_3.7_021303\conda\conda-bld\pytorch_1565316900252\work\aten\src\TH/generic/THTensorEvenMoreMath.cpp:472

Traceback (most recent call last):


 "train.py", line 267, in <module>

main(parse_arguments())


 "train.py", line 261, in main

start=args.start


 "/data/user/BMSG-GAN/sourcecode/MSG_GAN/GAN.py", line 417, in train

for (i, batch) in enumerate(data, 1):


 "/data/user/.local/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 582, in __next__

return self._process_next_batch(batch)


 "/data/user/.local/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 608, in _process_next_batch

raise batch.exc_type(batch.exc_msg)
RuntimeError: Traceback (most recent call last):
