<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/vision/ops/augment.py#L856-L859) |

Equivalent of PIL Posterize.

    tfm.vision.augment.posterize(
        image: tf.Tensor, bits: int
    ) -> tf.Tensor