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

#### 产品支持情况

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


#### 头文件/库文件

- 头文件：#include <ge/ge_api.h>
- 库文件：libge_runner.so


#### 功能说明

查询IR（Intermediate Representation）表达能力。


#### 函数原型

```
bool IsIrRepSupport(const char *rep)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| rep | 输入 | IR表达能力。 |


#### 返回值说明

| 参数名 | 类型 | 说明 |
| --- | --- | --- |
| \- | bool | true：查询成功。 false：查询失败。 |


#### 约束说明

无


#### 调用示例

```
#include "ge/ge_api_v2.h"
bool existingFeature = IsIrRepSupport("_inference_rule");
```
