# tf.keras.preprocessing.image.random_channel_shift

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v2.13.1/keras/preprocessing/image.py#L2390-L2403) |

Performs a random channel shift.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

\`tf.compat.v1.keras.preprocessing.image.random_channel_shift\`

<br />

    tf.keras.preprocessing.image.random_channel_shift(
        x, intensity_range, channel_axis=0
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | Input tensor. Must be 3D. |
| `intensity_range` | Transformation intensity. |
| `channel_axis` | Index of axis for channels in the input tensor. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Numpy image tensor. ||

<br />