Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

use model from checkpoint tensorflow

 
with tf.Session() as sess:    
    saver = tf.train.import_meta_graph('my-model-1000.meta')
    saver.restore(sess,tf.train.latest_checkpoint('./'))
    print(sess.run('w1:0'))
##Model has been restored. Above statement will print the saved value of w1.
Source by cv-tricks.com #
 
PREVIOUS NEXT
Tagged: #model #checkpoint #tensorflow
ADD COMMENT
Topic
Name
8+4 =