19 #include "ngraph/node.hpp"
20 #include "ngraph/pattern/op/pattern.hpp"
34 static constexpr
NodeTypeInfo type_info{
"patternSkip", 0};
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 Skip(
const OutputVector& args, ValuePredicate pred)
52 0, args.at(0).get_element_type(), args.at(0).get_partial_shape());
55 Skip(
const OutputVector& args, NodePredicate pred =
nullptr)
56 : Pattern(args, as_value_predicate(pred))
59 0, args.at(0).get_element_type(), args.at(0).get_partial_shape());
62 virtual bool match_value(pattern::Matcher* matcher,
63 const Output<Node>& pattern_value,
64 const Output<Node>& graph_value)
override;
A handle for one of a node's outputs.
Definition: node_output.hpp:42
Definition: pattern.hpp:82
const NodeTypeInfo & get_type_info() const override
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28