recurrent neural networks figure - unrolling the rnn corresponding to figure - (step identical to figure - given that the dataset to be trained on consists of sequences of varying sizesthe input sequences are grouped so that the sequences of the same size fall into one group thenfor groupwe can unroll the rnn for the sequence length and train it training for different group will require the rnn to be unrolled for different sequence length thusit is possible to train the rnn on inputs of varying sizes by unrolling and training it with the unrolling done based on the sequence length it must be noted that training the unrolled rnn illustrated in figure - is essentially sequential processas the hidden states are dependent on each other in the case of rnns where in the recurrence is over the output instead of the hidden state (figure - )it is possible to use technique