Closed dhara-thacker closed 1 year ago
@dhara-thacker,
Can you please re - check the training sentences and training labels. I tried to fit the model with dummy data and it worked for me. Please find attached gist.
Also, please make sure you are using the latest versions as mentioned below. Thank you!
Tensorflow Version: 2.11.1
Tensorflow Hub Version: 0.13.0
Tensorflow Text Version: 2.11.0
Closing this due to inactivity. Please take a look into the answers provided above, feel free to reopen and post your comments(if you still have queries on this). Thank you!
What happened?
I'm trying to use this model universal-sentence-encoder-multilingual (https://tfhub.dev/google/universal-sentence-encoder-multilingual/3) and when I try to fit the model, it generates this error. Locally as well as on colab. It seems to be working on english text, but throws the error while training on Arabic text.
Node: 'model_feature_extractor/Cast' Cast float to string is not supported [[{{node model_feature_extractor/Cast}}]] [Op:__inference_train_function_113506]
The error comes up with both categorical_crossentropy as well as binary_crossentropy
Relevant code
Relevant log output
tensorflow_hub Version
0.13.0.dev (unstable development build)
TensorFlow Version
other (please specify)
Other libraries
No response
Python Version
3.x
OS
Linux