Closed ericy51 closed 1 year ago
Hi @ericy51,
Try using model.save(path)
or tf.keras.models.save_model(model, path)
to serialise the model.
You should be able to load it with tf.keras.models.load_model(path)
or tf.saved_model.load(path)
Hi @ericy51 . I also met this issue. This is a tricky part of TensorFlow. You can refer to my example. You have to make a predict before saving the model, so TF can automatically generate signatures for serving. https://github.com/tensorflow/tensorflow/issues/37439#issuecomment-596916472
I've successfully created a model with context features for the query tower and I can get recommendations with the following query
However when I try to save the model with the same format and query the saved model I get an error
Error:
I'm not sure why the behavior changes once the model is saved?