Thanks! The transformation works as intended and this code properly visualizes the normalized image:
img = PIL.Image.open('tmp02.jpeg')

transform = torchvision.transforms.Compose([
        torchvision.transforms.ToTensor()
])

out = transform(img)
plt.imshow(out.permute(1, 2, 0).numpy())


Feel free to post an executable code snippet, which would reproduce this issue.