something in his transformation seems odd for me. Please guide me.
test_transform = transforms.Compose([
    transforms.ToPILImage(),
    transforms.ToTensor()
])

this seems logically wrong because I think the images in torch are loaded as PIL image. In order to use them inin convolution networks, we must convert them to Tensor. So we use transforms.ToTensor(). When I want to show an image in dataloader (image in dataloader is tensor), I convert the tensor image to PILImage using transformation. But here both of transformations are written in one place. That’s why it seems odd for me.
Please guide me. Thank you in advance