posterize torchvision.transforms.v2.functional.posterize(inpt: Tensor, bits: int) → Tensor[source] See for details.