Skip to content

Instantly share code, notes, and snippets.

@FrancescoSaverioZuppichini
Last active July 4, 2018 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrancescoSaverioZuppichini/cf720a3eff740cda8bc7a4437a2a9af4 to your computer and use it in GitHub Desktop.
Save FrancescoSaverioZuppichini/cf720a3eff740cda8bc7a4437a2a9af4 to your computer and use it in GitHub Desktop.
tf.reset_default_graph()
mnist_model = MNISTModel()
with tf.Session() as sess:
saver = tf.train.import_meta_graph("{}.meta".format('/tmp/model.ckpt'))
saver.restore(sess, '/tmp/model.ckpt')
graph = tf.get_default_graph()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment