I'm trying to feed a CNN output into an RNN in TensorFlow.

The CNN processes 10 images and outputs a tensor of shape (1, 230, 2048). Where 230 is the total number of sequences for all images and 2048 is the length of each sequence.

I keep track of the number of sequences for each image in a vector. For example:

`[1, 9, 25, 29, 31, 10, 23, 29, 37, 36]`

I can get the max sequence number, in this case it will be 37.

The question is how to pad the (1, 230, 2048) tensor at different positions so that all the images are represented with the same number of sequences (37 in this example) ?

The final tensor should be of shape (1, 370, 2048).

Thanks