How to normalize PyTorch tensor?
A tensor in PyTorch is like a NumPy array with the difference that the tensors can utilize the power of GPU whereas arrays can't. To normalize a tensor, we transform the tensor such that the mean and standard deviation become 0 and 1 respectively.