7 #include "ngraph/node.hpp"
8 #include "ngraph/pattern/op/pattern.hpp"
22 static constexpr
NodeTypeInfo type_info{
"patternSkip", 0};
27 set_output_type(0, arg.get_element_type(), arg.get_partial_shape());
30 Skip(
const Output<Node>& arg, NodePredicate pred =
nullptr)
31 : Pattern({arg}, as_value_predicate(pred))
33 set_output_type(0, arg.get_element_type(), arg.get_partial_shape());
36 Skip(
const OutputVector& args, ValuePredicate pred)
40 0, args.at(0).get_element_type(), args.at(0).get_partial_shape());
43 Skip(
const OutputVector& args, NodePredicate pred =
nullptr)
44 : Pattern(args, as_value_predicate(pred))
47 0, args.at(0).get_element_type(), args.at(0).get_partial_shape());
50 virtual bool match_value(pattern::Matcher* matcher,
51 const Output<Node>& pattern_value,
52 const Output<Node>& graph_value)
override;
A handle for one of a node's outputs.
Definition: node_output.hpp:33
Definition: pattern.hpp:73
const NodeTypeInfo & get_type_info() const override
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16