Hi,
There is no rotating in your code and transforms will not do that. I think the way you visualize your image has some problems. Here is the way I plot images:
x = Image.open('cat.jpg')
x.load()
transform = transforms.Compose([transforms.Resize([256, 256]),
									transforms.RandomCrop(224),
									transforms.ToTensor()])
new_x = transform(x)
plt.imshow(new_x.permute((1, 2, 0)))  # permute channels to get numpy style image

Bests