7 #include "ngraph/node.hpp"
8 #include "ngraph/pattern/op/pattern.hpp"
27 static constexpr
NodeTypeInfo type_info{
"patternBranch", 0};
35 set_output_type(0, element::f32,
Shape{});
40 m_destination_node = destination.
get_node();
41 m_destination_index = destination.
get_index();
46 return m_destination_node ==
nullptr
48 :
Output<
Node>{m_destination_node->shared_from_this(),
52 bool match_value(pattern::Matcher* matcher,
53 const Output<Node>& pattern_value,
54 const Output<Node>& graph_value)
override;
57 Node* m_destination_node{
nullptr};
58 size_t m_destination_index{0};
A handle for one of a node's outputs.
Definition: node_output.hpp:33
Definition: node_output.hpp:25
Shape for a tensor.
Definition: shape.hpp:19
Definition: branch.hpp:25
const NodeTypeInfo & get_type_info() const override
Branch()
Creates a Branch pattern.
Definition: branch.hpp:32
Definition: pattern.hpp:73
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16