Squeeze - 1 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.

Files changed (1) hide show
  1. Squeeze1 → Squeeze13 +6 -8
Squeeze1 → Squeeze13 RENAMED
@@ -1 +1 @@
1
1
  Remove single-dimensional entries from the shape of a tensor.
2
- Takes an input axes with a list of axes to squeeze.
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 non-negative integers, indicate the dimensions to squeeze.
9
+
5
10
  **Inputs**
6
-
7
- Between 1 and 2 inputs.
8
11
  * **data** (heterogeneous) - **T**:
9
12
  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
13
  **Outputs**
15
14
  * **squeezed** (heterogeneous) - **T**:
16
15
  Reshaped tensor with same data as input.
17
16
  **Type Constraints**
18
17
  * **T** in (
19
- tensor(bfloat16),
20
18
  tensor(bool),
21
19
  tensor(complex128),
22
20
  tensor(complex64),
23
21
  tensor(double),
24
22
  tensor(float),
25
23
  tensor(float16),
26
24
  tensor(int16),
27
25
  tensor(int32),
28
26
  tensor(int64),
29
27
  tensor(int8),
30
28
  tensor(string),
31
29
  tensor(uint16),
32
30
  tensor(uint32),
33
31
  tensor(uint64),
34
32
  tensor(uint8)
35
33
  ):
36
34
  Constrain input and output types to all tensor types.