Solved by ptrblck in post #2 
              
              
                This error is raised, if you try to normalize a ByteTensor or LongTensor with floating point numbers. 
Transform your image to a FloatTensor via image = image.float() before applying the normalization and it should work.