title: Tensorflow/nmt: How to get the encoder hidden states?
body: <p>I have just started to work with tensorflow. I'm following the tutorial on neural machine translation given by Thang Luong, Eugene Brevdo, Rui Zhao here</p>
  
  <p><a href="https://www.tensorflow.org/tutorials/seq2seq" rel="nofollow noreferrer">https://www.tensorflow.org/tutorials/seq2seq</a></p>
  
  <p>I want to use the model as an auto-encoder but I was wondering how we can get the encoder hidden states at inference time?</p>
  
  <p>Any help would be much appreciated.</p>