Class ov::pass::pattern::op::Branch#

class Branch : public ov::pass::pattern::op::Pattern#

A branch adds a loop to the pattern. The branch match is successful if the destination node pattern matches the graph value. The destination node is a node in the pattern graph that will not have been created some time after the Branch node is created; use set_destination to add it.

The branch destination is not stored as a shared pointer to prevent reference cycles. Thus the destination node must be referenced in some other way to prevent it from being deleted.

Public Functions

inline Branch()#

Creates a Branch pattern.