I have variable length data and want to pack it to batches with the size of max sample len in batch by repeating shorter samples.
For example from this
[[0, 1, 2, 3, 4], [0, 1, 2], [2, 2, 3]]
make this
[[0, 1, 2, 3, 4], [0, 1, 2, 0, 1], [2, 2, 3, 2, 2]]
