How do I save/restore model?
See original GitHub issueHello, I’m pretty new to using both python and tensorflow.
From my basic understanding, there should be a way to serialize the trained model and bring it back to train more later.
As I read through tf’s session doc, that might be a way to do it. However, I’ve looked through session_management.py
but got no vision of how to achieve this.
Is this possible already? Or, maybe, I missed something?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
TensorFlow Save & Restore Model - Jonathan Hui - Medium
To save the complete model, we use model.save(filepath) to save it as a SavedModel. As later explained, it contains the state of the...
Read more >Save and load models | TensorFlow Core
The section below illustrates the steps to save and restore the model. # Create and train a new model instance. # Save the...
Read more >A quick complete tutorial to save and restore Tensorflow models
Update: This popular article shows how to save and restore models in Tensorflow 1.x. If you want to learn the same with Tensorflow2.x,...
Read more >How to save/restore a model after training? - Stack Overflow
If you restore to continue to train, just use the Saver checkpoints. If you save the model to do reference, just the tensorflow...
Read more >4- Save and Restore - Easy TensorFlow
To save and restore your variables, all you need to do is to call the tf.train.Saver() at the end of you graph. ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @dekdekbaloo ! Thanks for checking it out.
TensorRec
doesn’t have any convenience methods for saving and loading models yet – personally, all my applications of it have been persistent in-memory.Assigning myself to this ticket to build some convenience methods.
The PR has been merged so I’m closing this issue or now.