19 #include "ngraph/node.hpp"
20 #include "ngraph/pattern/op/pattern.hpp"
34 static constexpr NodeTypeInfo type_info{
"patternSkip", 0};
36 Skip(
const Output<Node>& arg, ValuePredicate pred)
39 set_output_type(0, arg.get_element_type(), arg.get_partial_shape());
42 Skip(
const Output<Node>& arg, NodePredicate pred =
nullptr)
43 : Pattern({arg}, as_value_predicate(pred))
45 set_output_type(0, arg.get_element_type(), arg.get_partial_shape());
48 virtual bool match_value(pattern::Matcher* matcher,
49 const Output<Node>& pattern_value,
50 const Output<Node>& graph_value)
override;