Internally it uses either PIL.Image.transform if input is PIL.Image or torch.nn.functional.interpolate for tensor inputs.
Please, see here for more info: https://pytorch.org/docs/stable/torchvision/transforms.html 19