Created
March 6, 2018 14:13
-
-
Save mrahtz/4f10ac1db8f10cee5565d77f9c724c46 to your computer and use it in GitHub Desktop.
This file contains 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
import tensorflow as tf | |
import time | |
sess = tf.Session() | |
var = tf.Variable(0) | |
saver = tf.train.Saver(max_to_keep=1) | |
sess.run(var.initializer) | |
i = 0 | |
while True: | |
print(i) | |
saver.save(sess, '/output/checkpoint', i) | |
i += 1 | |
time.sleep(0.2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment