## 🐛 Bug `torchvision.transforms.functional.pil_to_tensor` returns non-contiguous tensor <!-- A clear and concise description of what the bug is. --> ## To Reproduce ```python from PIL import Image from torchvision.transforms.functional import pil_to_tensor pic = Image.open("3_channel_pic.png") pil_to_tensor(pic).is_contiguous() # False ``` <!-- If you have a code sample, error messages, stack traces, please provide it here as well --> ## Expected behavior `.contiguous()` is recommended to be used after `.permute()`, so that 1. consistent behavior with `to_tensor()`; 2. increase computational efficiency cc @vfdev-5