1
2with tf.Session() as sess:
3 new_saver = tf.train.import_meta_graph('my_test_model-1000.meta')
4 new_saver.restore(sess, tf.train.latest_checkpoint('./'))
5
1
2with tf.Session() as sess:
3 saver = tf.train.import_meta_graph('my-model-1000.meta')
4 saver.restore(sess,tf.train.latest_checkpoint('./'))
5 print(sess.run('w1:0'))
6##Model has been restored. Above statement will print the saved value of w1.
7