---
title: EnableIrAttrMatch
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/atlasgeapi_07_0567.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/atlasgeapi_07_0567.html
indexId: 07644c0f044df752cd3d23ccb5554dcbcd57a6b43d6d3dc3044cd4498ccfcb0072
---
# EnableIrAttrMatch

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |


#### 头文件/库文件

- 头文件：#include <ge/fusion/pattern_matcher_config.h>
- 库文件：libge_compiler.so


#### 功能说明

配置是否使能IR属性及其值匹配能力。

若使能该配置， pattern matcher将在pattern匹配过程中对pattern中节点上携带的IR属性的值进行匹配。


#### 函数原型

```
PatternMatcherConfigBuilder &EnableIrAttrMatch()
```


#### 参数说明

无


#### 返回值说明

PatternMatcherConfigBuilder &引用，可进行成员函数的级联调用。


#### 约束说明

匹配方式为二进制匹配，这是一种较为严格的匹配方式。若不符合预期，请关闭该开关，在Pass中自行处理值校验逻辑。
