title: Tensorflow - ValueError: Parent directory of trained_variables.ckpt doesn't exist, can't save
body: <p>I want to save my tensorflow session <code>sess</code> but i have the following error</p>
  
  <p><code>ValueError: Parent directory of trained_variables.ckpt doesn't exist, can't save.</code></p>
  
  <p>This is my line of code :</p>
  
  <p><code>saver.save(sess, "trained_variables.ckpt")</code></p>
  
  <p>I've also tried to change the file name and put <code>model</code> instead of <code>trained_variables.ckpt</code> but i get the same problem.</p>
  
  <p>Following this tutorial <a href="http://jrmeyer.github.io/tutorial/2016/02/01/TensorFlow-Tutorial.html" rel="noreferrer">A TensorFlow Tutorial: Email Classification</a></p>