Split - 13 vs 18¶
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.
- Split13 → Split18 +9 -3
Split13 → Split18
RENAMED
@@ -1 +1 @@
|
|
1
|
-
Split a tensor into a list of tensors, along the specified
|
1
|
+
Split a tensor into a list of tensors, along the specified 'axis'.
|
2
|
-
'
|
2
|
+
Either input 'split' or the attribute 'num_outputs' should be specified, but not both.
|
3
|
-
|
3
|
+
If the attribute 'num_outputs' is specified, then the tensor is split into equal sized parts.
|
4
|
+
If the tensor is not evenly splittable into num_outputs, the last chunk will be smaller.
|
5
|
+
If the input 'split' is specified, it indicates the sizes of each output in the split.
|
4
6
|
### Attributes
|
5
7
|
* **axis - INT** (default is '0'):
|
6
8
|
Which axis to split on. A negative value means counting dimensions from the back. Accepted range is [-rank, rank-1] where r = rank(input).
|
9
|
+
|
10
|
+
* **num_outputs - INT** :
|
11
|
+
|
12
|
+
Number of outputs to split parts of the tensor into. If the tensor is not evenly splittable the last chunk will be smaller.
|
7
13
|
### Inputs
|
8
14
|
Between 1 and 2 inputs.
|
9
15
|
- **input** (heterogeneous) - **T**:
|
10
16
|
The tensor to split
|
11
17
|
- **split** (optional, heterogeneous) - **tensor(int64)**:
|
12
18
|
Optional length of each output. Values should be >= 0.Sum of the values must be equal to the dim value at 'axis' specified.
|
13
19
|
### Outputs
|
14
20
|
Between 1 and 2147483647 outputs.
|
15
21
|
- **outputs** (variadic, heterogeneous) - **T**:
|
16
22
|
One or more outputs forming list of tensors after splitting
|
17
23
|
### Type Constraints
|
18
24
|
* **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) ):
|
19
25
|
Constrain input and output types to all tensor types.
|