Traceback (most recent call last):


 "test.py", line 83, in <module>

out = model(x1,lookup_tensor)


 "/home/sarvani/anaconda3/envs/MMTOD_env/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in __call__

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


 "/home/sarvani/Desktop/SaiCharan/misc/vqa.pytorch/vqa/models/att.py", line 160, in forward

x_q_vec = self.seq2vec(input_q)


 "/home/sarvani/anaconda3/envs/MMTOD_env/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in __call__

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


 "/home/sarvani/Desktop/SaiCharan/misc/vqa.pytorch/vqa/models/seq2vec.py", line 62, in forward

lengths = process_lengths(input)


 "/home/sarvani/Desktop/SaiCharan/misc/vqa.pytorch/vqa/models/seq2vec.py", line 12, in process_lengths

max_length = input.size(1)
IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)

Traceback (most recent call last):


 "subword-nmt/learn_bpe.py", line 254, in <module>

main(args.input, args.output, args.symbols, args.min_frequency, args.verbose, is_dict=args.dict_input)


 "subword-nmt/learn_bpe.py", line 199, in main

vocab = dict([(tuple(x[:-1])+(x[-1]+'</w>',) ,y) for (x,y) in vocab.items()])


 "subword-nmt/learn_bpe.py", line 199, in <listcomp>

vocab = dict([(tuple(x[:-1])+(x[-1]+'</w>',) ,y) for (x,y) in vocab.items()])
IndexError: string index out of range
