torch.nn.functional.interpolate — PyTorch 1.10.1 documentation
pytorch.org › torchtorch.nn.functional.interpolate. Down/up samples the input to either the given size or the given scale_factor. The algorithm used for interpolation is determined by mode. 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 ...
torch.lerp — PyTorch 1.10.1 documentation
pytorch.org › docs › stabletorch.lerp. Does a linear interpolation of two tensors start (given by input) and end based on a scalar or tensor weight and returns the resulting out tensor. The shapes of start and end must be broadcastable. If weight is a tensor, then the shapes of weight, start, and end must be broadcastable. out ( Tensor, optional) – the output tensor.