Hi,
I think you have to specify the HxW size like:
imgs = torch.nn.functional.interpolate(imgs, size=(240,320), mode='bilinear')

It should deal with channels and batches  but I’m not 100 % sure as I have no torch on this device. It deals with batches (at least) for sure.