RandomAutocontrast in PyTorch

Buy Me a Coffee☕*My post explains OxfordIIITPet().RandomAutocontrast() can randomly autocontrast an image with a given probability as shown below:*Memos:
The 1st argument for initialization is p(Opt...