To save the model, you can do the following:
model_checkpoint = 'model.chkpt'
...
...
with tf.Session() as sess:
sess.run(tf.initialize_all_variables())
tf_saver = tf.train.Saver(tf.all_variables())
...
...
tf_saver.save(sess, model_checkpoint)
I assume that you have already done this, since you have three files. When you want to load a model into another class, you can do it like this:
model_checkpoint = 'model.chkpt'
...
...
with tf.Session() as sess:
tf_saver = tf.train.Saver()
tf_saver.restore(sess, model_checkpoint)
source
share