You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValueError: Only instances of keras.Layer can be added to a Sequential model. Received: <tensorflow_hub.keras_layer.KerasLayer object at 0x7d4e252400a0> (of type <class 'tensorflow_hub.keras_layer.KerasLayer'>)
It showing this error for this code
Setup the model layers
model = tf.keras.Sequential([
hub.KerasLayer(MODEL_URL),
ValueError: Only instances of
keras.Layer
can be added to a Sequential model. Received: <tensorflow_hub.keras_layer.KerasLayer object at 0x7d4e252400a0> (of type <class 'tensorflow_hub.keras_layer.KerasLayer'>)It showing this error for this code
Setup the model layers
model = tf.keras.Sequential([
hub.KerasLayer(MODEL_URL),
Wrap hub.KerasLayer in a Lambda layer
])
The text was updated successfully, but these errors were encountered: