I am puzzled, why would Pytorch force me to explicitly cast a uint8 3 channel image tensor to a floating point valued tensor before being able to calculate the statistics?
And what is the most efficient way of doing this then?
Right now I am using
        image.double().mean((1,2))

but this seems overly complicated…