<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#L506-L534) |

Rotates the image by degrees either clockwise or counterclockwise.

    tfm.vision.augment.rotate(
        image: tf.Tensor, degrees: float
    ) -> tf.Tensor

<br />

<br />

<br />

| ## Args ||
|---|---|
| `image` | An image Tensor of type uint8. |
| `degrees` | Float, a scalar angle in degrees to rotate all images by. If degrees is positive the image will be rotated clockwise otherwise it will be rotated counterclockwise. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The rotated version of image. ||

<br />