Squeeze - 11 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.
- Squeeze11 → Squeeze13 +8 -8
Squeeze11 → Squeeze13
RENAMED
@@ -1 +1 @@
|
|
1
1
|
Remove single-dimensional entries from the shape of a tensor.
|
2
|
-
Takes
|
2
|
+
Takes a parameter axes with a list of axes to squeeze.
|
3
3
|
If axes is not provided, all the single dimensions will be removed from
|
4
4
|
the shape. If an axis is selected with shape entry not equal to one, an error is raised.
|
5
|
+
**Attributes**
|
6
|
+
|
7
|
+
* **axes**:
|
8
|
+
List of integers indicating the dimensions to squeeze. Negative
|
9
|
+
value means counting dimensions from the back. Accepted range is
|
10
|
+
[-r, r-1] where r = rank(data).
|
11
|
+
|
5
12
|
**Inputs**
|
6
|
-
|
7
|
-
Between 1 and 2 inputs.
|
8
13
|
* **data** (heterogeneous) - **T**:
|
9
14
|
Tensors with at least max(dims) dimensions.
|
10
|
-
* **axes** (optional, heterogeneous) - **tensor(int64)**:
|
11
|
-
List of integers indicating the dimensions to squeeze. Negative
|
12
|
-
value means counting dimensions from the back. Accepted range is
|
13
|
-
[-r, r-1] where r = rank(data).
|
14
15
|
**Outputs**
|
15
16
|
* **squeezed** (heterogeneous) - **T**:
|
16
17
|
Reshaped tensor with same data as input.
|
17
18
|
**Type Constraints**
|
18
19
|
* **T** in (
|
19
|
-
tensor(bfloat16),
|
20
20
|
tensor(bool),
|
21
21
|
tensor(complex128),
|
22
22
|
tensor(complex64),
|
23
23
|
tensor(double),
|
24
24
|
tensor(float),
|
25
25
|
tensor(float16),
|
26
26
|
tensor(int16),
|
27
27
|
tensor(int32),
|
28
28
|
tensor(int64),
|
29
29
|
tensor(int8),
|
30
30
|
tensor(string),
|
31
31
|
tensor(uint16),
|
32
32
|
tensor(uint32),
|
33
33
|
tensor(uint64),
|
34
34
|
tensor(uint8)
|
35
35
|
):
|
36
36
|
Constrain input and output types to all tensor types.
|