# tf_agents.utils.nest_utils.stack_nested_arrays

<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/nest_utils.py#L1066-L1082) |

Stack/batch a list of nested numpy arrays.

    tf_agents.utils.nest_utils.stack_nested_arrays(
        nested_arrays
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `nested_arrays` | A list of nested numpy arrays of the same shape/structure. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A nested array containing batched items, where each batched item is obtained by stacking corresponding items from the list of nested_arrays. ||

<br />