OptionalGetElement - 15 vs 18¶
OptionalGetElement15 → OptionalGetElement18
RENAMED
@@ -1 +1 @@
|
|
1
|
+
If the input is a tensor or sequence type, it returns the input.
|
2
|
+
If the input is an optional type, it outputs the element in the input.
|
1
|
-
|
3
|
+
It is an error if the input is an empty optional-type (i.e. does not have an element) and the behavior is undefined in this case.
|
2
|
-
and the behavior is undefined in this case.
|
3
4
|
**Inputs**
|
4
5
|
* **input** (heterogeneous) - **O**:
|
5
6
|
The optional input.
|
6
7
|
**Outputs**
|
7
8
|
* **output** (heterogeneous) - **V**:
|
8
9
|
Output element in the optional input.
|
9
10
|
**Type Constraints**
|
10
11
|
* **O** in (
|
11
12
|
optional(seq(tensor(bool))),
|
12
13
|
optional(seq(tensor(complex128))),
|
13
14
|
optional(seq(tensor(complex64))),
|
14
15
|
optional(seq(tensor(double))),
|
15
16
|
optional(seq(tensor(float))),
|
16
17
|
optional(seq(tensor(float16))),
|
17
18
|
optional(seq(tensor(int16))),
|
18
19
|
optional(seq(tensor(int32))),
|
19
20
|
optional(seq(tensor(int64))),
|
20
21
|
optional(seq(tensor(int8))),
|
21
22
|
optional(seq(tensor(string))),
|
22
23
|
optional(seq(tensor(uint16))),
|
23
24
|
optional(seq(tensor(uint32))),
|
24
25
|
optional(seq(tensor(uint64))),
|
25
26
|
optional(seq(tensor(uint8))),
|
26
27
|
optional(tensor(bool)),
|
27
28
|
optional(tensor(complex128)),
|
28
29
|
optional(tensor(complex64)),
|
29
30
|
optional(tensor(double)),
|
30
31
|
optional(tensor(float)),
|
31
32
|
optional(tensor(float16)),
|
32
33
|
optional(tensor(int16)),
|
33
34
|
optional(tensor(int32)),
|
34
35
|
optional(tensor(int64)),
|
35
36
|
optional(tensor(int8)),
|
36
37
|
optional(tensor(string)),
|
37
38
|
optional(tensor(uint16)),
|
38
39
|
optional(tensor(uint32)),
|
39
40
|
optional(tensor(uint64)),
|
40
|
-
optional(tensor(uint8))
|
41
|
+
optional(tensor(uint8)),
|
42
|
+
seq(tensor(bool)),
|
43
|
+
seq(tensor(complex128)),
|
44
|
+
seq(tensor(complex64)),
|
45
|
+
seq(tensor(double)),
|
46
|
+
seq(tensor(float)),
|
47
|
+
seq(tensor(float16)),
|
48
|
+
seq(tensor(int16)),
|
49
|
+
seq(tensor(int32)),
|
50
|
+
seq(tensor(int64)),
|
51
|
+
seq(tensor(int8)),
|
52
|
+
seq(tensor(string)),
|
53
|
+
seq(tensor(uint16)),
|
54
|
+
seq(tensor(uint32)),
|
55
|
+
seq(tensor(uint64)),
|
56
|
+
seq(tensor(uint8)),
|
57
|
+
tensor(bool),
|
58
|
+
tensor(complex128),
|
59
|
+
tensor(complex64),
|
60
|
+
tensor(double),
|
61
|
+
tensor(float),
|
62
|
+
tensor(float16),
|
63
|
+
tensor(int16),
|
64
|
+
tensor(int32),
|
65
|
+
tensor(int64),
|
66
|
+
tensor(int8),
|
67
|
+
tensor(string),
|
68
|
+
tensor(uint16),
|
69
|
+
tensor(uint32),
|
70
|
+
tensor(uint64),
|
71
|
+
tensor(uint8)
|
41
72
|
):
|
42
73
|
Constrain input type to optional tensor and optional sequence types.
|
43
74
|
* **V** in (
|
44
75
|
seq(tensor(bool)),
|
45
76
|
seq(tensor(complex128)),
|
46
77
|
seq(tensor(complex64)),
|
47
78
|
seq(tensor(double)),
|
48
79
|
seq(tensor(float)),
|
49
80
|
seq(tensor(float16)),
|
50
81
|
seq(tensor(int16)),
|
51
82
|
seq(tensor(int32)),
|
52
83
|
seq(tensor(int64)),
|
53
84
|
seq(tensor(int8)),
|
54
85
|
seq(tensor(string)),
|
55
86
|
seq(tensor(uint16)),
|
56
87
|
seq(tensor(uint32)),
|
57
88
|
seq(tensor(uint64)),
|
58
89
|
seq(tensor(uint8)),
|
59
90
|
tensor(bool),
|
60
91
|
tensor(complex128),
|
61
92
|
tensor(complex64),
|
62
93
|
tensor(double),
|
63
94
|
tensor(float),
|
64
95
|
tensor(float16),
|
65
96
|
tensor(int16),
|
66
97
|
tensor(int32),
|
67
98
|
tensor(int64),
|
68
99
|
tensor(int8),
|
69
100
|
tensor(string),
|
70
101
|
tensor(uint16),
|
71
102
|
tensor(uint32),
|
72
103
|
tensor(uint64),
|
73
104
|
tensor(uint8)
|
74
105
|
):
|
75
106
|
Constrain output type to all tensor or sequence types.
|