Split - 2 vs 13¶
Next section compares an older to a newer version of the same operator after both definition are converted into markdown text. Green means an addition to the newer version, red means a deletion. Anything else is unchanged.
- Split2 → Split13 +8 -7
Split2 → Split13
RENAMED
@@ -1 +1 @@
|
|
1
1
|
Split a tensor into a list of tensors, along the specified
|
2
|
-
'axis'. Lengths of the parts can be specified using
|
2
|
+
'axis'. Lengths of the parts can be specified using input 'split'.
|
3
3
|
Otherwise, the tensor is split to equal sized parts.
|
4
4
|
### Attributes
|
5
5
|
* **axis - INT** (default is '0'):
|
6
|
+
Which axis to split on. A negative value means counting dimensions from the back. Accepted range is [-rank, rank-1] where r = rank(input).
|
6
|
-
Which axis to split on.
|
7
|
-
|
8
|
-
* **split - INTS** :
|
9
|
-
|
10
|
-
length of each output
|
11
7
|
### Inputs
|
8
|
+
|
9
|
+
Between 1 and 2 inputs.
|
12
10
|
- **input** (heterogeneous) - **T**:
|
13
11
|
The tensor to split
|
12
|
+
- **split** (optional, heterogeneous) - **tensor(int64)**:
|
13
|
+
|
14
|
+
Optional length of each output. Values should be >= 0.Sum of the values must be equal to the dim value at 'axis' specified.
|
14
15
|
### Outputs
|
15
16
|
Between 1 and 2147483647 outputs.
|
16
17
|
- **outputs** (variadic, heterogeneous) - **T**:
|
17
18
|
One or more outputs forming list of tensors after splitting
|
18
19
|
### Type Constraints
|
19
|
-
* **T** in ( 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) ):
|
20
|
+
* **T** in ( tensor(bfloat16), 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) ):
|
20
21
|
Constrain input and output types to all tensor types.
|