PatternMatcher Constructor and Destructor

Applicable Products

All processors

Header File/Library File

  • Header file: #include <ge/fusion/pattern_matcher.h>
  • Library file: libge_compiler.so

Function Usage

Constructs a PatternMatcher based on the pattern and target graph.

Prototype

1
2
explicit PatternMatcher(std::unique_ptr<Pattern> pattern, const GraphPtr &target_graph)
~PatternMatcher()

Parameters

Parameter

Input/Output

Description

pattern

Input

Pattern definition. After the PatternMatcher is constructed, the lifecycle of the pattern is managed by the matcher.

target_graph

Input

Graph to be matched.

Returns

None

Restrictions

None