ConstantOfShape - 20 vs 23¶
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.
ConstantOfShape20 → ConstantOfShape23
RENAMED
@@ -1 +1 @@
|
|
1
1
|
Generate a tensor with given value and shape.
|
2
2
|
### Attributes
|
3
3
|
* **value - TENSOR** :
|
4
4
|
(Optional) The value of the output elements.Should be a one-element tensor. If not specified, it defaults to a tensor of value 0 and datatype float32
|
5
5
|
### Inputs
|
6
6
|
- **input** (heterogeneous) - **T1**:
|
7
7
|
1D tensor. The shape of the expected output tensor. If empty tensor is given, the output would be a scalar. All values must be >= 0.
|
8
8
|
### Outputs
|
9
9
|
- **output** (heterogeneous) - **T2**:
|
10
10
|
Output tensor of shape specified by 'input'.If attribute 'value' is specified, the value and datatype of the output tensor is taken from 'value'.If attribute 'value' is not specified, the value in the output defaults to 0, and the datatype defaults to float32.
|
11
11
|
### Type Constraints
|
12
12
|
* **T1** in ( tensor(int64) ):
|
13
13
|
Constrain input types.
|
14
|
-
* **T2** in ( tensor(bfloat16), tensor(bool), tensor(double), tensor(float), tensor(float16), tensor(float8e4m3fn), tensor(float8e4m3fnuz), tensor(float8e5m2), tensor(float8e5m2fnuz), tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8) ):
|
14
|
+
* **T2** in ( tensor(bfloat16), tensor(bool), tensor(double), tensor(float), tensor(float16), tensor(float4e2m1), tensor(float8e4m3fn), tensor(float8e4m3fnuz), tensor(float8e5m2), tensor(float8e5m2fnuz), tensor(int16), tensor(int32), tensor(int4), tensor(int64), tensor(int8), tensor(uint16), tensor(uint32), tensor(uint4), tensor(uint64), tensor(uint8) ):
|
15
|
-
Constrain output types to be numerics.+ Constrain output types to be numerics or boolean.? +++++++++++
|