I think:
the first-step : get [1, 4, 6] according to length 3
the second-step : get [2, 5] according to length 2
recurrent neural network run step by step, instead of batch by batch
But every step its input is a batch size data (e.g., 3 and 2).