Reshape - 1 vs 14#

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. Reshape1 → Reshape14 +8 -27
Reshape1 → Reshape14 RENAMED
@@ -1 +1 @@
1
1
  Reshape the input tensor similar to numpy.reshape.
2
- First input is the data tensor, second input is a shape tensor which specifies the output shape. It outputs the reshaped tensor.
2
+ It takes a tensor as input and an argument shape. It outputs the reshaped tensor.
3
3
  At most one dimension of the new shape can be -1. In this case, the value is
4
4
  inferred from the size of the tensor and the remaining dimensions. A dimension
5
5
  could also be 0, in which case the actual dimension value is unchanged (i.e. taken
6
- from the input tensor). If 'allowzero' is set, and the new shape includes 0, the
7
- dimension will be set explicitly to zero (i.e. not taken from input tensor).
8
- Shape (second input) could be an empty shape, which means converting to a scalar.
6
+ from the input tensor). Shape (second input) could be an empty shape, which means converting to a scalar.
9
7
  The input tensor's shape and the output tensor's shape are required to have the same number of elements.
10
8
  **Attributes**
9
+ * **consumed_inputs**:
10
+ legacy optimization attribute.
11
+ * **shape**:
12
+ New shape
11
- * **allowzero**:
12
- (Optional) By default, when any value in the 'shape' input is equal
13
- to zero the corresponding dimension value is copied from the input
14
- tensor dynamically. allowzero=1 indicates that if any value in the
15
- 'shape' input is set to zero, the zero value is honored, similar to
16
- NumPy.
17
13
  **Inputs**
18
14
  * **data** (heterogeneous) - **T**:
19
15
  An input tensor.
20
- * **shape** (heterogeneous) - **tensor(int64)**:
21
- Specified shape for output.
22
16
  **Outputs**
23
17
  * **reshaped** (heterogeneous) - **T**:
24
18
  Reshaped data.
25
19
  **Type Constraints**
26
20
  * **T** in (
27
- tensor(bfloat16),
28
- tensor(bool),
29
- tensor(complex128),
30
- tensor(complex64),
31
21
  tensor(double),
32
22
  tensor(float),
33
- tensor(float16),
23
+ tensor(float16)
34
- tensor(int16),
35
- tensor(int32),
36
- tensor(int64),
37
- tensor(int8),
38
- tensor(string),
39
- tensor(uint16),
40
- tensor(uint32),
41
- tensor(uint64),
42
- tensor(uint8)
43
24
  ):
44
- Constrain input and output types to all tensor types.? ^^ -----
25
+ Constrain input and output types to float tensors.? +++ ^