# tf_agents.utils.composite.reshape

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/utils/composite.py#L32-L46) |

Reshape composite tensor `t` to `shape`.

    tf_agents.utils.composite.reshape(
        t, shape
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `t` | A `Tensor` or `SparseTensor`. |
| `shape` | `1D` tensor, array, or list. The new shape. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The reshaped tensor. ||

<br />