<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#L7788-L7804) |

Join a sequence of tensors along a new axis.

#### View aliases


**Main aliases**

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

<br />

    tf.keras.ops.stack(
        x, axis=0
    )

The `axis` parameter specifies the index of the new axis in the
dimensions of the result.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | A sequence of tensors. |
| `axis` | Axis along which to stack. Defaults to `0`. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The stacked tensor. ||

<br />