torch.nn.functional.interpolate - PyTorch 1.11.0 documentation
Down/up samples the input to either the given or the given scale_factor The algorithm used for interpolation is determined by . Currently temporal, spatial and volumetric sampling are supported, i.e. expected inputs are 3-D, 4-D or 5-D in shape. The input dimensions are interpreted in the form: mini-batch x channels x [optional depth] x [optional height] x width.