Split - version 11#

This page documents version 11 of operator Split. See Split for the latest version (since version 18).

  • Domain: ai.onnx

  • Since version: 11

Split a tensor into a list of tensors, along the specified ‘axis’. Lengths of the parts can be specified using argument ‘split’. Otherwise, the tensor is split to equal sized parts.

Inputs

  • input (T): The tensor to split

Outputs

Between 1 and ∞ outputs.

  • outputs (T): One or more outputs forming list of tensors after splitting

Attributes

  • axis (int): Which axis to split on. A negative value means counting dimensions from the back. Accepted range is [-rank, rank-1] where r = rank(input).

  • split (int[]): length of each output. Values should be >= 0.

Type Constraints

  • T: Constrain input and output types to all tensor types. Allowed types: tensor(bool), tensor(complex128), tensor(complex64), tensor(double), tensor(float), tensor(float16), tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(string), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8).

Differences with previous version (2)#

SchemaDiff: Split (domain 'ai.onnx')

  • old version: 2

  • new version: 11

  • breaking: no