title: tensorflow - cannot restore model - "Couldn't match files for checkpoint"
body: <p>
  Here is my model saved to disk:</p>
  
  <pre class="lang-py prettyprint-override"><code>import tensorflow as tf
  import numpy as np
  
  
  BATCH_SIZE = 3
  VECTOR_SIZE = 1
  LEARNING_RATE = 0.1
  
  x = tf.placeholder(tf.float32, [BATCH_SIZE, VECTOR_SIZE],
                     name='input_placeholder')
  y = tf.placeholder(tf.float32, [BATCH_SIZE, VECTOR_SIZE],
                     name='labels_placeholder')
  
  W = tf.get_variable('W', [VECTOR_SIZE, BATCH_SIZE])
  b = tf.get_variable('b', [VECTOR_SIZE], initializer=tf.constant_initializer(0.0))
  
  y_hat = tf.matmul(W, x) + b
  predict = tf.add(tf.matmul(W, x), b, name='predict')
  total_loss = tf.reduce_mean(y-y_hat)
  train_step = tf.train.AdagradOptimizer(LEARNING_RATE).minimize(total_loss)
  X = np.ones([BATCH_SIZE, VECTOR_SIZE])
  Y = np.ones([BATCH_SIZE, VECTOR_SIZE])
  all_saver = tf.train.Saver() 
  
  sess= tf.Session()
  sess.run(tf.global_variables_initializer())
  sess.run([train_step], feed_dict = {x: X, y:Y})
  save_path = r'C:\tmp\tmp\\'
  all_saver.save(sess,save_path)
  </code></pre>
  
  <p>While trying to restore</p>
  
  <pre class="lang-py prettyprint-override"><code>checkpoint_path = r'C:\tmp\tmp\\'
  tf.train.latest_checkpoint(checkpoint_path)
  </code></pre>
  
  <p>I am getting the following error message:</p>
  
  <pre class="lang-py prettyprint-override"><code>ERROR:tensorflow:Couldn't match files for checkpoint C:\tmp\tmp\\
  </code></pre>
  
  <p>In <code>C:\tmp\tmp\</code> I have the following files: </p>
  
  <pre class="lang-py prettyprint-override"><code>.data-00000-of-00001
  .index
  .meta
  checkpoint
  </code></pre>
  
  <p>Any thoughts?</p>