Skip to content

Instantly share code, notes, and snippets.

@FrancescoSaverioZuppichini
Last active July 4, 2018 14:56
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/d992c0a431745306635e62cf13d5ae98 to your computer and use it in GitHub Desktop.
Save FrancescoSaverioZuppichini/d992c0a431745306635e62cf13d5ae98 to your computer and use it in GitHub Desktop.
# reset the graph
tf.reset_default_graph()
with tf.Session() as sess:
saver = tf.train.import_meta_graph("{}.meta".format('/tmp/model.ckpt'))
saver.restore(sess, '/tmp/model.ckpt')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment