How batch_sizes in PackedSequence are computed and used in rnns?

I wanted to repeat every element in packed sequence multiple times, but I am a little bit confused about batch_sizes, is it valid to just multiply batch_sizes?