---
title: OP_ATTR_NAMES
description: "用于封装AI CPU算子的属性名字。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/aolapi/atlasascendc_api_07_1055.html
sourcePath: /source/zh/canncommercial/900/API/aolapi/atlasascendc_api_07_1055.html
indexId: e734d8c858f72c8b48fb6cb28df207e6311b97e7a63e7e7bbfbd113ad6d2e38070
---
# OP_ATTR_NAMES

#### 宏功能

用于封装AI CPU算子的属性名字。


#### 宏原型

```
OP_ATTR_NAMES::op::FVector<std::string>
```


#### 参数说明

| 参数 | 输入/输出 | 说明 |
| --- | --- | --- |
| / | 输入 | AI CPU算子的属性名，类型为std::string的FVector（参见表3）。默认值为空的FVector，即OP\_ATTR\_NAMES()。 |


#### 约束说明

无


#### 调用示例

```
// 封装AI CPU算子的3个属性名为Tindices，T和use_locking
OP_ATTR_NAMES({"Tindices", "T", "use_locking"});
```
