19 #include "ngraph/node.hpp"
20 #include "ngraph/pattern/op/pattern.hpp"
39 static constexpr
NodeTypeInfo type_info{
"patternBranch", 0};
47 set_output_type(0, element::f32,
Shape{});
52 m_destination_node = destination.
get_node();
53 m_destination_index = destination.
get_index();
58 return m_destination_node ==
nullptr
60 :
Output<
Node>{m_destination_node->shared_from_this(),
64 bool match_value(pattern::Matcher* matcher,
65 const Output<Node>& pattern_value,
66 const Output<Node>& graph_value)
override;
69 Node* m_destination_node{
nullptr};
70 size_t m_destination_index{0};
A handle for one of a node's outputs.
Definition: node_output.hpp:42
Definition: node_output.hpp:36
Shape for a tensor.
Definition: shape.hpp:31
Definition: branch.hpp:37
const NodeTypeInfo & get_type_info() const override
Branch()
Creates a Branch pattern.
Definition: branch.hpp:44
Definition: pattern.hpp:82
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:28