title: TensorFlow Variable not being restored correctly
body: <p>I'm new to tensorflow and am trying to learn to save and restore my model.</p>
  
  <p>I saved it like this:</p>
  
  <pre><code>with tf.Session() as sess:
      sess.run(tf.initialize_all_variables())
  
      for epoch in range(hm_epochs):
           #Training Model...
  
      accuracy = tf.reduce_mean(tf.cast(correct, 'float'))
      print(sess.run('b1:0'))
      saver = tf.train.Saver()
      save_path = saver.save(sess, r"C:\...\Desktop\model.ckpt")
  </code></pre>
  
  <p>And Restoring this model like this:</p>
  
  <pre><code>sess = tf.Session()
  new_saver = tf.train.import_meta_graph(r'C:\...\Desktop\model.ckpt.meta')
  new_saver.restore(sess,tf.train.latest_checkpoint("C:/.../Desktop"))
  print(sess.run('b1:0'))
  </code></pre>
  
  <p>But the values in b1 are different in each program. Can someone tell me what I'm doing wrong?</p>
  
  <p>Thanks in advance!</p>