---
title: ExtendCfgInfo
description: 为HostCPU自定义算子额外添加一组键值对形式的扩展配置。
url: "https://www.hiascend.com/document/detail/zh/canncommercial/900/API/ascendcopapi/atlasascendc_api_07_00229.html"
---

# ExtendCfgInfo

#### 功能说明

为HostCPU自定义算子额外添加一组键值对形式的扩展配置。


#### 函数原型

```
OpHostCPUDef &ExtendCfgInfo(const char *key, const char *value)
```


#### 参数说明

| 参数 | 输入/输出 | 说明 |
| --- | --- | --- |
| key | 输入 | 扩展配置的 “键名”，配置项的名称。 |
| value | 输入 | 扩展配置的 “值”，对应键名的配置内容。 |


#### 返回值说明

OpHostCPUDef算子定义，OpHostCPUDef请参考OpHostCPUDef。


#### 约束说明

无
