title: Tensorflow MNIST - accuracy of particular test image
body: <p>Here is the code that I used for predicting particular mnist image, how can i get accuracy by which the prediction is done ? </p>
  
  <p>_pre are logits</p>
  
  <pre><code>    _x  = loaded_graph.get_tensor_by_name('x:0')
      _y  = loaded_graph.get_tensor_by_name('y:0')
      _pre  = loaded_graph.get_tensor_by_name('prediction:0')
      p = tf.argmax(_pre, 1)
      i = imageprepare('./image.png')
      print(p.eval(feed_dict={_x: [i]}))
  </code></pre>