title: Finish Tensorflow training in progress
body: <blockquote>
    <p>Data loss: not an sstable (bad magic number): perhaps your file is in
    a different file format and you need to use a different restore
    operator?</p>
  </blockquote>
  
  <p>I'm currently training <a href="https://github.com/ibab/tensorflow-wavenet/blob/master/README.md" rel="nofollow noreferrer">Tensorflow-wavenet</a> with a directory of .wav audio files. Now, I want to stop the training and generate output, however the commands are not working. Here is terminal training:
  <a href="https://i.stack.imgur.com/LRWlW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LRWlW.png" alt="enter image description here"></a></p>
  
  <p>I have seen <a href="https://stackoverflow.com/questions/33759623/tensorflow-how-to-save-restore-a-model">this stackoverflow post</a>, but tf.train.export_meta_graph does nothing. Also, if I try to generate output in a new terminal tab, like so:</p>
  
  <pre><code>cd /Users/ruchirbaronia/Downloads/tensorflow-wavenet-master 
  python generate.py --wav_out_path=generated.wav --samples 16000 logdir/train/2018-01-03T09-18-15/model.ckpt-0.index
  </code></pre>
  
  <p>I get this <a href="https://gist.github.com/anonymous/60995691472150193fed0172e2e27b10" rel="nofollow noreferrer">error</a> which basically says I can't generate output since training data has not been saved. How can I save and finish training?</p>