Pytorch equivalent of numpy.repeat for 4d image tensor?

Basically i just want to upsample each channel of each batch by duplicating each pixel.
(upsample along width and height but not channel)