You will need to save your model at the end of training using the class tf.train.Saver.
When initializing an object, Saveryou need to pass a list of all the variables that you want to save. The best part is that you can use these saved variables in another calculation graph!
Saver,
saver = tf.train.Saver([v1, v2])
tf.Session,
saver.save(sess, 'filename');
, , global_step.
restore(). .