title: Accessing the softmax output of previous RNN state in Keras
body: <p>The recurrence formula in my RNN is <code>h(t) = tanh(W.x(t) + U.h(t-1) + V.O(t-1) + b)</code>, where <code>O(t-1)</code> is the classification output (Softmax output) of the RNN at time <code>t-1</code>. How can I access this output at the next time step? </p>
  
  <p>I guess I have to write a custom RNN, but I am a bit confused by all the recurrent functions in recurrent.py in Keras and I am not sure which parts should be modified. </p>