Hi everyone,
I’m fine-tunning a transformer model (BERT) using the procedure described here (Fine-tuning a pretrained model — transformers 4.11.3 documentation 5) using keras/TensorFlow.
The model was running without any problem until yesterday, when it started to throw this error: AttributeError: ‘tensorflow.python.framework.ops.EagerTensor’ object has no attribute ‘to_tensor’.

image889×410 141 KB

I’m still able to run the model in a local TensorFlow configuration that I have in my Apple M1 laptop, but I can’t run it in Google Colab/ Amazon SageMaker, etc.  The model was running just fine in Google Colab until yesterday when it started trowing the error.
I wonder what can be happening. I really appreciate if someone could shed some light.
Thanks,
Isabel
#help_request
#keras