test2 = Variable(torch.LongTensor(np.array(test2)),volatile = True)
test2gs is the list of 2 grams of all the sentence which can be maximum 10 length.
ERROR:
Traceback (most recent call last):
File “linear3.py”, line 291, in
trainup()
File “linear3.py”, line 239, in trainup
test2 = Variable(torch.LongTensor(np.array(test2)),volatile = True)
RuntimeError: inconsistent sequence length at index (0, 1, 6) - expected 7 but got 8