Traceback (most recent call last):
File “train.py”, line 322, in 
main()
File “train.py”, line 314, in main
train_model(model, data, optim, i, params)
File “train.py”, line 119, in train_model
for src, tgt, src_len, tgt_len, original_src, original_tgt in trainloader:
File “/home/mu/.conda/envs/dym/lib/python3.5/site-packages/torch/utils/data/dataloader.py”, line 314, in next
batch = self.collate_fn([self.dataset[i] for i in indices])
File “/home/mu/global-encoding/utils/data_helper.py”, line 84, in padding
src_pad = torch.zeros(len(src), max(src_len)).long()
RuntimeError: sizes must be non-negative
it’s my error ,I don’t know how to solve it