# tf.raw_ops.Transpose

<br />

Shuffle dimensions of x according to a permutation.

#### View aliases


**Compat aliases for migration**

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

[`tf.compat.v1.raw_ops.Transpose`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/Transpose)

<br />

    tf.raw_ops.Transpose(
        x, perm, name=None
    )

The output `y` has the same rank as `x`. The shapes of `x` and `y` satisfy:
`y.shape[i] == x.shape[perm[i]] for i in [0, 1, ..., rank(x) - 1]`

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | A `Tensor`. |
| `perm` | A `Tensor`. Must be one of the following types: `int32`, `int64`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor`. Has the same type as `x`. ||

<br />