It was solved when i changed transforms in order as
transformed = transforms.Compose([
    transforms.ToTensor(),
    transforms.Normalize((0.485, 0.456, 0.406), (0.229, 0.224, 0.225)),
])

After transforming to tensor and then using normalize. As from the stack overflow answer.