I am using pre-trained inceptionv3 model in my script. I normalize tensor with following mean and std:
mean=[0.485, 0.456, 0.406]
std=[0.229, 0.224, 0.225]

I would like to know how can I perform reverse operation. Currently, I perform this op in the following way:
#first-remove batch dimension
img[0] = img[0] * 0.229
img[1] = img[1] * 0.224 
img[2] = img[2] * 0.225 
img[0] += 0.485 
img[1] += 0.456 
img[2] += 0.406

Is there a better way to do this?