question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do I save/restore model?

See original GitHub issue

Hello, 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:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
jfkirkcommented, Feb 1, 2018

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.

0reactions
jfkirkcommented, Feb 10, 2018

The PR has been merged so I’m closing this issue or now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found