I have the tensor of N×3×128×128 which stands for a batch of images，which range is [-1,1].  Now I want to input it to the pretrained VGG16 to extract feature.  However, It requires  range [0, 1] , size >224 and mean=[0.485, 0.456, 0.406]  ,std=[0.229, 0.224, 0.225].
What can I use to do the aboving process based a batch?(especially for the normalization about the mean and std)？Thanks！