-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: TF Hub is not compatible with Keras 3 and TensorFlow 2.16+ #903
Comments
Hi @rkazants. Thanks for posting. Can you try upgrading to the latest Some extra context: TensorFlow v2.16 points |
@KeijiBranshi Thanks. It worked |
Now your code should work properly with using keras 2 |
Done with the above installation still getting the error can anyone help with it |
@Aarushi16V The following is what worked for me. !pip3 install tf_keras==2.16 import os |
What happened?
When I try to create Keras model using TF 2.16+ I've got an error:
ValueError: Exception encountered when calling layer 'keras_layer' (type KerasLayer).
A KerasTensor is symbolic: it's a placeholder for a shape an a dtype. It doesn't have any actual numerical value. You cannot convert it to a NumPy array.
Relevant code
Relevant log output
tensorflow_hub Version
0.12.0 (latest stable release)
TensorFlow Version
other (please specify)
Other libraries
TF 2.16
Python Version
3.x
OS
Linux
The text was updated successfully, but these errors were encountered: