Perhaps your features (`output` in this case) have excessive nesting (inputs type `list` where type `int` is expected)

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