<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#L5600-L5617) |

Move axes of a tensor to new positions.

#### View aliases


**Main aliases**

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

<br />

    tf.keras.ops.moveaxis(
        x, source, destination
    )

Other axes remain in their original order.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | Tensor whose axes should be reordered. |
| `source` | Original positions of the axes to move. These must be unique. |
| `destination` | Destinations positions for each of the original axes. These must also be unique. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Tensor with moved axes. ||

<br />