Solved by ptrblck in post #2 
              
              
                I don’t know how you are comparing these two outputs, but make sure to create a clone of the input numpy array, since you are manipulating it inplace. 
Also, note that ToTensor() will normalize numpy arrays, if they are passed in the uint8 dtype, not if they are using the float32 type. 
Additionally…