I have a tensor of size BxCxHxW
i want to mask the values in each channel as if they are larger than 0.25*mean of that channel the value be 1 and if they are lower than that the value be 0.
How we can do it fast in pytorch?
Thanks a lot in advance