Recurrent Neural Networks

nn.RNN(input_dim, hidden_dim, layer_dim, batch_first=True,nonlinearity='tanh')
roll out

RNN cell vs RNN forward:

  • RNN cell:

    • Input: a(t-1), x(t)

    • Output: a(t)

  • RNN forward cell:

    • Input: a(t)

    • Output: y(t)

RNN vs RNN_forward

Pytorch

Last updated

Was this helpful?