This error might be raised, if your input tensor has 4 channels, while the Normalize transformation expects a 3 channel image. This might happen, if some of your input channels contain an alpha channel.
After loading the PIL.Image, you could convert it to RGB via image = image.convert('RGB').