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

MatchResult构造函数和析构函数

产品支持情况

产品

是否支持

Atlas A3 训练系列产品/Atlas A3 推理系列产品

Atlas A2 训练系列产品/Atlas A2 推理系列产品

Atlas 200I/500 A2 推理产品

Atlas 推理系列产品

Atlas 训练系列产品

头文件/库文件

  • 头文件:#include <ge/fusion/match_result.h>
  • 库文件:libge_compiler.so

功能说明

MatchResult构造函数和析构函数。

定义匹配结果,入参为Pattern即匹配定义。在MatchResult中,Matched Node为根据Pattern Node匹配到的节点,与Pattern Node一一对应。

函数原型

1
2
3
4
5
6
explicit MatchResult(const Pattern *pattern);
MatchResult(const MatchResult &other) noexcept;
MatchResult(MatchResult &&other) noexcept;
MatchResult &operator=(const MatchResult &other) noexcept;
MatchResult &operator=(MatchResult &&other) noexcept ;
~MatchResult();

参数说明

参数名

输入/输出

说明

pattern

输入

Pattern定义。

返回值说明

异常处理

约束说明