OptionalHasElement - 15 vs 18#

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.

OptionalHasElement15 → OptionalHasElement18 RENAMED
@@ -1 +1 @@
1
+ Returns true if the optional-type input contains an element. If it is an empty optional-type, this op returns false.
1
- Returns true if (1) the input is an optional-type and contains an element,
2
- or, (2) the input is a tensor or sequence type.
3
- If the input is not provided or is an empty optional-type, this op returns false.
4
2
  **Inputs**
5
- Between 0 and 1 inputs.
6
-
7
- * **input** (optional, heterogeneous) - **O**:
3
+ * **input** (heterogeneous) - **O**:
8
4
  The optional input.
9
5
  **Outputs**
10
6
  * **output** (heterogeneous) - **B**:
11
7
  A scalar boolean tensor. If true, it indicates that optional-type
12
8
  input contains an element. Otherwise, it is empty.
13
9
  **Type Constraints**
14
10
  * **O** in (
15
11
  optional(seq(tensor(bool))),
16
12
  optional(seq(tensor(complex128))),
17
13
  optional(seq(tensor(complex64))),
18
14
  optional(seq(tensor(double))),
19
15
  optional(seq(tensor(float))),
20
16
  optional(seq(tensor(float16))),
21
17
  optional(seq(tensor(int16))),
22
18
  optional(seq(tensor(int32))),
23
19
  optional(seq(tensor(int64))),
24
20
  optional(seq(tensor(int8))),
25
21
  optional(seq(tensor(string))),
26
22
  optional(seq(tensor(uint16))),
27
23
  optional(seq(tensor(uint32))),
28
24
  optional(seq(tensor(uint64))),
29
25
  optional(seq(tensor(uint8))),
30
26
  optional(tensor(bool)),
31
27
  optional(tensor(complex128)),
32
28
  optional(tensor(complex64)),
33
29
  optional(tensor(double)),
34
30
  optional(tensor(float)),
35
31
  optional(tensor(float16)),
36
32
  optional(tensor(int16)),
37
33
  optional(tensor(int32)),
38
34
  optional(tensor(int64)),
39
35
  optional(tensor(int8)),
40
36
  optional(tensor(string)),
41
37
  optional(tensor(uint16)),
42
38
  optional(tensor(uint32)),
43
39
  optional(tensor(uint64)),
44
- optional(tensor(uint8)),
40
+ optional(tensor(uint8))
45
- seq(tensor(bool)),
46
- seq(tensor(complex128)),
47
- seq(tensor(complex64)),
48
- seq(tensor(double)),
49
- seq(tensor(float)),
50
- seq(tensor(float16)),
51
- seq(tensor(int16)),
52
- seq(tensor(int32)),
53
- seq(tensor(int64)),
54
- seq(tensor(int8)),
55
- seq(tensor(string)),
56
- seq(tensor(uint16)),
57
- seq(tensor(uint32)),
58
- seq(tensor(uint64)),
59
- seq(tensor(uint8)),
60
- tensor(bool),
61
- tensor(complex128),
62
- tensor(complex64),
63
- tensor(double),
64
- tensor(float),
65
- tensor(float16),
66
- tensor(int16),
67
- tensor(int32),
68
- tensor(int64),
69
- tensor(int8),
70
- tensor(string),
71
- tensor(uint16),
72
- tensor(uint32),
73
- tensor(uint64),
74
- tensor(uint8)
75
41
  ):
76
42
  Constrain input type to optional tensor and optional sequence types.
77
43
  * **B** in (
78
44
  tensor(bool)
79
45
  ):
80
46
  Constrain output to a boolean tensor.