pytorch resize and pad image

Does torch have the same functionality as tf.image.resize_with_pad?

I need to resize a picture and pad it with zeros to a wanted size.

E.g: image.shape = [147, 228, 3] - [224, 224, 3]

Topic pytorch tensorflow python machine-learning

Category Data Science

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.