Open akshit96 opened 6 years ago
Hi @akshit96,
it cannot be pickled right now (there is a PR about this, but I haven't merded in yet), but in example.ipynb
there is an example of how to save/restore the model.
Any ideas how to save model for tf serving? Examples provide only python model saving and loading. But I do not want to use python for already trained model.
You can save bias, weights, vectors in a file and calculate the prediction manually.
According to this answer https://stackoverflow.com/a/47982699/1579570 it is does not seem easy.
May be better to use SavedModel
inside?
I did by saving the weights and predicting manually in a java code. It worked.
This is what we do and it works fine.
How can I save a trained tffm for future predictions ? The model object cannot be pickled due to thread.RLock type object and isn't json serializable either.