Open
Description
🚀 The feature
In tensorflow tf.image has a method, tf.image.resize_with_pad, that pads and resizes if the aspect ratio of input and output images are different to avoid distortion. I couldn't find an equivalent in torch transformations and had to write it myself. I think it would be a useful feature to have.
Motivation, pitch
When moving to pytoch from Tensorflow, one does not want to lose handy features!
Alternatives
No response
Additional context
No response