torch.nn.functional.upsample_nearest
- torch.nn.functional.upsample_nearest(input, size=None, scale_factor=None)
Upsamples the input, using nearest neighbours’ pixel values.
Upsamples the input, using nearest neighbours’ pixel values.
This function is deprecated in favor of torch.nn.functional.interpolate().
This is equivalent with nn.functional.interpolate(..., mode='nearest').
Currently spatial and volumetric upsampling are supported (i.e. expected inputs are 4 or 5 dimensional).