@@ -34,19 +34,14 @@ class OPENVINO_API Label : public Pattern {
34
34
// / nullptr,
35
35
// / OutputVector{add});
36
36
// / \endcode
37
- template <typename TPredicate>
37
+ template <typename TPredicate, typename TArg = OutputVector >
38
38
Label (const element::Type& type,
39
39
const PartialShape& s,
40
40
const TPredicate& pred,
41
- const OutputVector & wrapped_values = {})
41
+ const TArg & wrapped_values = OutputVector {})
42
42
: Pattern(OutputVector{wrap_values (wrapped_values)}, Predicate(pred)) {
43
43
set_output_type (0 , type, s);
44
44
}
45
- Label (const element::Type& type,
46
- const PartialShape& s,
47
- const NodePredicate& pred,
48
- const NodeVector& wrapped_values = {})
49
- : Label(type, s, Predicate(pred), as_output_vector(wrapped_values)) {}
50
45
51
46
// / \brief creates a Label node containing a sub-pattern described by the type and
52
47
// / shape of \sa node.
@@ -60,11 +55,9 @@ class OPENVINO_API Label : public Pattern {
60
55
// / nullptr,
61
56
// / OutputVector{add});
62
57
// / \endcode
63
- template <typename TPredicate>
64
- Label (const Output<Node>& value, const TPredicate& pred, const OutputVector & wrapped_values = {})
58
+ template <typename TPredicate, typename TArg = OutputVector >
59
+ Label (const Output<Node>& value, const TPredicate& pred, const TArg & wrapped_values = OutputVector {})
65
60
: Label(value.get_element_type(), value.get_partial_shape(), Predicate(pred), wrapped_values) {}
66
- Label (const Output<Node>& node, const NodePredicate& pred, const NodeVector& wrapped_values = {})
67
- : Label(node.get_element_type(), node.get_partial_shape(), Predicate(pred), as_output_vector(wrapped_values)) {}
68
61
69
62
explicit Label (const element::Type& type = element::dynamic, const PartialShape& s = PartialShape::dynamic())
70
63
: Label(type, s, nullptr , OutputVector{}) {}
@@ -75,6 +68,7 @@ class OPENVINO_API Label : public Pattern {
75
68
76
69
protected:
77
70
static Output<Node> wrap_values (const OutputVector& wrapped_values);
71
+ static Output<Node> wrap_values (const NodeVector& wrapped_values);
78
72
};
79
73
} // namespace op
80
74
0 commit comments