Hi,
specify each channel size as F.upsampling(img, size=(batch, channel, H, W)) doesn’t make sense to me,
torch.nn.upsampling(img, size) size just need a list of 2 ints(H and W) so it auto upsample on each channel, futhermore, torch.nn.upsampling is deprecated and use torch.nn.functional.interpolate instead.