How to set the History input of a RNN/LSTM cell to Zero?
<p>In order to do "Inference" with a trained RNN/LSTM model for sentences one by one. I think I need to set the <strong>History input parameter</strong> of a RNN/LSTM cell to Zero at the beginning of each sentence.</p>

<p>So how can it be done in Tensorflow?</p>

<p>Based on <a href="http://stackoverflow.com/questions/38441589/tensorflow-rnn-initial-state">this answer</a> I believe that the state is set back to whatever state you pass in with the <code>initial_state</code> argument to <code>tf.nn.rnn</code> (or the other RNN creation functions).</p>

python machine-learning nlp tensorflow