PatternMatcher Constructor and Destructor

Applicability

Product

Supported or Not

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Header File/Library File

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

Function Usage

Constructs 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 PatternMatcher is constructed, its life cycle is managed by the Matcher.

target_graph

Input

Graph to be matched.

Returns

None

Constraints

None