昇腾社区首页
中文
注册
开发者
下载

PatternMatcher构造函数和析构函数

功能说明

通过pattern和target_graph构造一个PatternMatcher。

函数原型

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

参数说明

参数名

输入/输出

说明

pattern

输入

Pattern定义。构造完PatternMatcher后其生命周期由matcher管理。

target_graph

输入

待匹配的graph。

返回值说明

约束说明