<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#L7734-L7755) |

Split a tensor into chunks.

#### View aliases


**Main aliases**

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

<br />

    tf.keras.ops.split(
        x, indices_or_sections, axis=0
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | Input tensor. |
| `indices_or_sections` | If an integer, N, the tensor will be split into N equal sections along `axis`. If a 1-D array of sorted integers, the entries indicate indices at which the tensor will be split along `axis`. |
| `axis` | Axis along which to split. Defaults to `0`. |

<br />

<br />

<br />

<br />

| ## Note ||
|---|---|
| A split does not have to result in equal division when using Torch backend. ||

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A list of tensors. ||

<br />