Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. # build your model
  2.  
  3. sess = tf.Session()
  4. # train your model
  5. saver = tf.train.Saver()
  6. saver.save(sess, 'model/model.ckpt')
  7.  
  8. # build your model (same as training)
  9. sess = tf.Session()
  10. saver = tf.train.Saver()
  11. saver.restore(sess, 'model/model.ckpt')
  12.  
  13. session.run(y_pred, feed_dict={x: input_data})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement