Public Member Functions
ngraph::pattern::RecurrentMatcher Class Reference

Public Member Functions

 RecurrentMatcher (const Output< Node > &initial_pattern, const Output< Node > &pattern, const std::shared_ptr< Node > &rpattern, const std::set< std::shared_ptr< Node >> &correlated_patterns)
 Constructs a RecurrentMatcher object. Reccurent Matchers are used to match repeating patterns (e.g. RNN, LSTM, GRU cells) More...
 
 RecurrentMatcher (const Output< Node > &pattern, const std::shared_ptr< Node > &rpattern, const std::set< std::shared_ptr< Node >> &correlated_patterns)
 Constructs a RecurrentMatcher object. Reccurent Matchers are used to match repeating patterns (e.g. RNN, LSTM, GRU cells) More...
 
 RecurrentMatcher (const Output< Node > &initial_pattern, const Output< Node > &pattern, const std::shared_ptr< Node > &rpattern, const std::set< std::shared_ptr< op::Label >> &correlated_patterns)
 
 RecurrentMatcher (const Output< Node > &pattern, const std::shared_ptr< Node > &rpattern, const std::set< std::shared_ptr< op::Label >> &correlated_patterns)
 
NodeVector get_bound_nodes_for_pattern (const std::shared_ptr< Node > &pattern) const
 Returns a vector of bound nodes for a given label (used in a pattern describing an individual cell.
 
size_t get_number_of_recurrent_matches () const
 
size_t get_number_of_bound_labels () const
 
bool match (Output< Node > graph)
 Tries to match a pattern for an individual cell to a given graph.
 
std::shared_ptr< Node > get_match_root ()
 
Output< Node > get_match_value ()
 

Constructor & Destructor Documentation

◆ RecurrentMatcher() [1/2]

ngraph::pattern::RecurrentMatcher::RecurrentMatcher ( const Output< Node > &  initial_pattern,
const Output< Node > &  pattern,
const std::shared_ptr< Node > &  rpattern,
const std::set< std::shared_ptr< Node >> &  correlated_patterns 
)
inline

Constructs a RecurrentMatcher object. Reccurent Matchers are used to match repeating patterns (e.g. RNN, LSTM, GRU cells)

Parameters
initial_patternis a pattern sub graph describing the initial cell
patternis a pattern sub graph describing an individual cell
rpatternis a (recurring) label to denote which node the next match should start at
correlated_patternsis a set of labels whose bound nodes must remain the same across all cells

◆ RecurrentMatcher() [2/2]

ngraph::pattern::RecurrentMatcher::RecurrentMatcher ( const Output< Node > &  pattern,
const std::shared_ptr< Node > &  rpattern,
const std::set< std::shared_ptr< Node >> &  correlated_patterns 
)
inline

Constructs a RecurrentMatcher object. Reccurent Matchers are used to match repeating patterns (e.g. RNN, LSTM, GRU cells)

Parameters
patternis a pattern sub graph describing an individual cell
rpatternis a (recurring) label to denote which node the next match should start at
correlated_patternsis a set of labels whose bound nodes must remain the same across all cells

The documentation for this class was generated from the following file: