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

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| 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属性及其值匹配能力。


#### 函数原型

```
bool IsEnableIrAttrMatch() const
```


#### 参数说明

无


#### 返回值说明

bool类型取值：

- 若返回true，pattern matcher将在pattern匹配过程中对pattern中节点上携带的IR属性的值进行匹配。
- 若返回false，节点上的IR属性不参与匹配。


#### 约束说明

匹配方式为二进制匹配，其是一种较为严格的匹配方式（对于浮点类数据类型来说）。若不符合预期，请关闭该开关，在Pass中自行处理值校验逻辑。
