Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # build your model
- sess = tf.Session()
- # train your model
- saver = tf.train.Saver()
- saver.save(sess, 'model/model.ckpt')
- # build your model (same as training)
- sess = tf.Session()
- saver = tf.train.Saver()
- saver.restore(sess, 'model/model.ckpt')
- session.run(y_pred, feed_dict={x: input_data})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement