<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/ops/numpy.py#L8991-L9005) |

Returns a tensor with `axes` transposed.

#### View aliases


**Main aliases**

[`tf.keras.ops.numpy.transpose`](https://www.tensorflow.org/api_docs/python/tf/keras/ops/transpose)

<br />

    tf.keras.ops.transpose(
        x, axes=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | Input tensor. |
| `axes` | Sequence of integers. Permutation of the dimensions of `x`. By default, the order of the axes are reversed. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `x` with its axes permuted. ||

<br />