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
In my attempt to port Large-scale multi-label classification to keras_core I hit an issue with the Inference Section. The example from keras.io created a new Inference model after training to include the TextVectorization preprocessing layer so inference can be done by passing strings directly to the model.
I have added the line model_for_inference = ... in the new notebook. However, I hit an issue with layers.StringLookup() using the keras_code import which didn't exist with the tf.keras import
for tf.keras backwards compatibility
In my attempt to port Large-scale multi-label classification to
keras_core
I hit an issue with the Inference Section. The example from keras.io created a new Inference model after training to include the TextVectorization preprocessing layer so inference can be done by passing strings directly to the model.model_for_inference = keras.Sequential([text_vectorizer, shallow_mlp_model])
This didn't work for keras_core imports and the attempt to port the example didn't include the particular step from the example.
PR: keras-team/keras-core#538
Colab Notebook: https://colab.research.google.com/drive/1kR7W4BJhtDlA5Jx_e4EwUM2FnzKP-D58#scrollTo=xmf6rTLL0G9H
The text was updated successfully, but these errors were encountered: