File "baseline.py", line 25, in <module>
input_id = torch.tensor(tokens2ids)
ValueError: expected sequence of length 791 at dim 1 (got 185)
list维度不一样,检查一下维度
应该是
input_id = torch.tensor(padded_ids)
File "baseline.py", line 25, in <module>
input_id = torch.tensor(tokens2ids)
ValueError: expected sequence of length 791 at dim 1 (got 185)
list维度不一样,检查一下维度
应该是
input_id = torch.tensor(padded_ids)