Constant - 9 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. Constant9 → Constant13 +2 -20
Constant9 → 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
10
  tensor(bool),
29
11
  tensor(complex128),
30
12
  tensor(complex64),
31
13
  tensor(double),
32
14
  tensor(float),
33
15
  tensor(float16),
34
16
  tensor(int16),
35
17
  tensor(int32),
36
18
  tensor(int64),
37
19
  tensor(int8),
38
20
  tensor(string),
39
21
  tensor(uint16),
40
22
  tensor(uint32),
41
23
  tensor(uint64),
42
24
  tensor(uint8)
43
25
  ):
44
26
  Constrain input and output types to all tensor types.