Is there a "PyTorch-ic" way to do padding and batching?