torchvision.transforms — Torchvision 0.8.1 documentation
pytorch.org › vision › 0torchvision.transforms.functional.resize (img: torch.Tensor, size: List[int], interpolation: int = 2) → torch.Tensor [source] ¶ Resize the input image to the given size. The image can be a PIL Image or a torch Tensor, in which case it is expected to have […, H, W] shape, where … means an arbitrary number of leading dimensions
Resize — Torchvision main documentation
pytorch.org › generated › torchvisionResize. class torchvision.transforms.Resize(size, interpolation=<InterpolationMode.BILINEAR: 'bilinear'>, max_size=None, antialias=None) [source] Resize the input image to the given size. If the image is torch Tensor, it is expected to have […, H, W] shape, where … means an arbitrary number of leading dimensions. Warning.