# tf.contrib.rnn.transpose_batch_time

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/rnn.py#L43-L66) |

Transposes the batch and time dimensions of a Tensor.

    tf.contrib.rnn.transpose_batch_time(
        x
    )

If the input tensor has rank \< 2 it returns the original tensor. Retains as
much of the static shape information as possible.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | A Tensor. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| x transposed along the first two dimensions. ||

<br />