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