How to find mean and standard deaviation for normalization

how do you calculate the mean and standard deviation for image normalization??

.mean() and .std() methods of a tensor should help.

like where do i type these sorry i forgot everything cuz been on a break