Constant - 1 vs 21

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