Constant - 11 vs 19¶
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.
- Constant11 → Constant19 +27 -3
Constant11 → Constant19
RENAMED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
This operator produces a constant tensor. Exactly one of the provided attributes, either value, sparse_value,
|
2
|
-
must be specified.
|
2
|
+
or value_* must be specified.
|
3
3
|
### Attributes
|
4
4
|
* **sparse_value - SPARSE_TENSOR** :
|
5
5
|
The value for the elements of the output tensor in sparse format.
|
6
6
|
* **value - TENSOR** :
|
7
7
|
The value for the elements of the output tensor.
|
8
|
+
* **value_float - FLOAT** :
|
9
|
+
|
10
|
+
The value for the sole element for the scalar, float32, output tensor.
|
11
|
+
|
12
|
+
* **value_floats - FLOATS** :
|
13
|
+
|
14
|
+
The values for the elements for the 1D, float32, output tensor.
|
15
|
+
|
16
|
+
* **value_int - INT** :
|
17
|
+
|
18
|
+
The value for the sole element for the scalar, int64, output tensor.
|
19
|
+
|
20
|
+
* **value_ints - INTS** :
|
21
|
+
|
22
|
+
The values for the elements for the 1D, int64, output tensor.
|
23
|
+
|
24
|
+
* **value_string - STRING** :
|
25
|
+
|
26
|
+
The value for the sole element for the scalar, UTF-8 string, output tensor.
|
27
|
+
|
28
|
+
* **value_strings - STRINGS** :
|
29
|
+
|
30
|
+
The values for the elements for the 1D, UTF-8 string, output tensor.
|
31
|
+
|
8
32
|
### Outputs
|
9
33
|
- **output** (heterogeneous) - **T**:
|
10
34
|
Output tensor containing the same value of the provided tensor.
|
11
35
|
### Type Constraints
|
12
|
-
* **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) ):
|
36
|
+
* **T** in ( tensor(bfloat16), tensor(bool), tensor(complex128), tensor(complex64), tensor(double), tensor(float), tensor(float16), tensor(float8e4m3fn), tensor(float8e4m3fnuz), tensor(float8e5m2), tensor(float8e5m2fnuz), tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(string), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8) ):
|
13
37
|
Constrain input and output types to all tensor types.
|