Flatten - 1 vs 9¶
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.
- Flatten1 → Flatten9 +2 -2
Flatten1 → Flatten9
RENAMED
@@ -1 +1 @@
|
|
1
1
|
Flattens the input tensor into a 2D matrix. If input tensor has shape
|
2
2
|
(d_0, d_1, ... d_n) then the output will have shape
|
3
3
|
(d_0 X d_1 ... d_(axis-1), d_axis X d_(axis+1) ... X dn).
|
4
4
|
### Attributes
|
5
5
|
* **axis - INT** (default is '1'):
|
6
6
|
Indicate up to which input dimensions (exclusive) should be flattened to the outer dimension of the output. The value for axis must be in the range [0, R], where R is the rank of the input tensor. When axis = 0, the shape of the output tensor is (1, (d_0 X d_1 ... d_n), where the shape of the input tensor is (d_0, d_1, ... d_n).
|
7
7
|
### Inputs
|
8
8
|
- **input** (heterogeneous) - **T**:
|
9
9
|
A tensor of rank >= axis.
|
10
10
|
### Outputs
|
11
11
|
- **output** (heterogeneous) - **T**:
|
12
12
|
A 2D tensor with the contents of the input tensor, with input dimensions up to axis flattened to the outer dimension of the output and remaining input dimensions flattened into the inner dimension of the output.
|
13
13
|
### Type Constraints
|
14
|
-
* **T** in ( tensor(double), tensor(float), tensor(float16) ):
|
14
|
+
* **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) ):
|
15
|
-
Constrain input and output
|
15
|
+
Constrain input and output to all tensor types.? ^ ^ +++++
|