Skip to content

Instantly share code, notes, and snippets.

@niektemme

niektemme/use_model1.py

Last active Feb 16, 2016
Embed
What would you like to do?
with tf.Session() as sess:
sess.run(init_op)
saver.restore(sess, "model.ckpt")
#print ("Model restored.")
prediction=tf.argmax(y,1)
return prediction.eval(feed_dict={x: [imvalue]}, session=sess)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.