Skip to content

Instantly share code, notes, and snippets.

@FrancescoSaverioZuppichini
Last active July 4, 2018 14:55
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/b752a437082a584fbc4d0b55046b596f to your computer and use it in GitHub Desktop.
Save FrancescoSaverioZuppichini/b752a437082a584fbc4d0b55046b596f to your computer and use it in GitHub Desktop.
EPOCHS = 10
saver = tf.train.Saver()
with tf.Session() as sess:
sess.run(tf.global_variables_initializer())
for _ in range(EPOCHS):
# train
pass
saver.save(sess,'/tmp/model.ckpt')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment