Coverting a Pytorch tensor of shape [1,3,19,19] to [1,3,9,9]

Hi,

You can use torch.nn.functional.interpolate to the down/up scaling for any tensors:

Bests

1 Like