How can I feed last output y(t-1) as input for generating y(t) in tensorflow RNN?
<p>I want to design a single layer RNN in Tensorflow such that last output <code>(y(t-1))</code> is participated in updating the hidden state.</p>

<pre><code>h(t) = tanh(W_{ih} * x(t) + W_{hh} * h(t) + **W_{oh}y(t - 1)**)
y(t) = W_{ho}*h(t)
</code></pre>

<p>How can I feed last input <code>y(t - 1)</code> as input for updating the hidden state?</p>