🤗 Transformers: State-of-the-art Machine Learning for Pytorch, TensorFlow, and JAX.
132.05k
stars
26.3k
forks
source link
TFDistilBertForSequenceClassification - TypeError: len is not well defined for symbolic Tensors during model.fit() #1378
Closed
rickysaurav closed 4 years ago
🐛 Bug
Model I am using (TFDistilBertForSequenceClassification):
Language I am using the model on (English):
The problem arise when using: model.fit()
The tasks I am working on is:
To Reproduce
Steps to reproduce the behavior:
call fit() on the model for finetuning
Expected behavior
Environment
Additional context
Calling the model directly with the input as mentioned in the example model doc works fine