Hugging Face Forums
How to solve ValueError: expected sequence of length 15 at dim 1 (got 18) error in python
🤗Transformers
LidorPrototype
May 10, 2023, 12:40pm
3
Have you found a solution to that? I have a similar problem
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
ValueError: Unable to create tensor for 1 dataset but not the other of same type
🤗Tokenizers
1
995
March 23, 2022
Error when Fine-tuning pretrained Masked Language Model
🤗Transformers
12
7873
March 9, 2023
RuntimeError: stack expects each tensor to be equal size, but got [12] at entry 0 and [35] at entry 1
🤗Transformers
2
6010
September 3, 2023
Token classification on custom BERT and data
Intermediate
2
1502
December 28, 2020
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
🤗Transformers
0
1009
October 22, 2022