PatternMatcher Constructor and Destructor

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

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