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

# 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"});
```
