title: How to get predictions MLP tensorflow from a restored model?
body: <p>stackoverflowers , I need some help from tensorflow experts. Actually I've buid a multi-layer perceptron, trained it, tested it and everything seemed ok. However, When I restored the model and tried to use it again, its accuracy does not correspond to the trained model and the predictions are pretty different from the real labels. The code I am using for the restoring - prediction is the following : (I'm using R)</p>
  
  <pre><code>pred &lt;- multiLayerPerceptron(test_data)
  init &lt;- tf$global_variables_initializer()
  with(tf$Session() %as% sess, {
    sess$run(init)
    model_saver$restore(sess, "log_files/model_MLP1")
    test_pred_1 &lt;- sess$run(pred, feed_dict= dict(x =  test_data))
  
  })
  </code></pre>
  
  <p>Is everything Ok with the code ? FYI I wanted by this part of the code to get the predictions of my model for test_data.</p>