ValueError: Unable to create tensor, you should probably activate truncation and/or padding with ‘padding=True’ ‘truncation=True’ to have batched tensors with the same length
How about this answer?
Isn’t it helpful for you?
2 Likes