---
title: CheckSupport
description: "注册一个“是否支持该算子”的判断函数。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/basicdataapi/atlasopapi_07_00714.html
sourcePath: /source/zh/canncommercial/900/maintenref/basicdataapi/atlasopapi_07_00714.html
indexId: 8954adc25a581386db51d87f6262ed367ba615df924d2703f7c9cc76649d776f78
---
# CheckSupport

#### 函数功能

注册一个“是否支持该算子”的判断函数。


#### 函数原型

```
OpImplRegisterV2 &CheckSupport(OP_CHECK_FUNC_V2 check_support_func)
```


#### 参数说明

| 参数 | 输入/输出 | 说明 |  |  |
| --- | --- | --- | --- | --- |
| check\_support\_func | 输入 | 待注册的OP\_CHECK\_FUNC\_V2函数。OP\_CHECK\_FUNC\_V2类型定义如下： 1 using OP\_CHECK\_FUNC\_V2 = ge::graphStatus (\*)(const OpCheckContext \*context, ge::AscendString &result); | 1 | using OP\_CHECK\_FUNC\_V2 = ge::graphStatus (\*)(const OpCheckContext \*context, ge::AscendString &result); |
| 1 | using OP\_CHECK\_FUNC\_V2 = ge::graphStatus (\*)(const OpCheckContext \*context, ge::AscendString &result); |  |  |  |


#### 返回值说明

返回算子的OpImplRegisterV2对象本身，该对象新增注册OP_CHECK_FUNC_V2函数。


#### 约束说明

无
