Created
December 2, 2018 21:03
-
-
Save hadifar/2bcee7185b7dd3defdf43d4b9832f15a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| model = MyModel() | |
| checkpoint = tf.train.Checkpoint(myModel=model) | |
| checkpoint.save('./test/model.ckpt') | |
| del model | |
| model = MyModel() | |
| checkpoint = tf.train.Checkpoint(myModel=model) | |
| checkpoint.restore(tf.train.latest_checkpoint('./test/')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment