Split

English | 简体中文

Product Support Status

Product Supported
Ascend 950PR&950DT products √
Atlas A3 products √
Atlas A2 products √
Atlas 200I/500 A2 inference products √
Atlas inference products √
Atlas training products √

Function Description

  • Operator function: evenly splits a tensor into num_split smaller tensors along the specified dimension split_dim.

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x Input Tensor to be split. FLOAT16, FLOAT32, INT8, INT16, INT64, INT32, UINT8, UINT16, UINT32, UINT64, BOOL ND
split_dim Input Dimension along which the tensor is split. INT32, INT64 ND
num_split Attribute Number of tensors to be split. INT -
y Output Output result. FLOAT16, FLOAT32, INT8, INT16, INT64, INT32, UINT8, UINT16, UINT32, UINT64, BOOL ND

Constraint Description

None

Invocation Description

Invocation Method Sample Code Description
Graph-mode API test_geir_split Invokes the Split operator through the operator IR API.