Linearize sRGB images

Is there an implemented function for normalize sRGB images (maybe using torchvision.transforms).
I could implement a standalone function, but I would like to include this in a list of transforms, and particularly, I do not know how to ‘put’ the condition inside a torchvision.transform.

Thanks

There’s a normalize function. I’m not sure if this is what you’re looking for.