---
title: OP_OUTPUT
description: "用于封装算子的输出aclTensor和aclTensorList。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/aolapi/atlasascendc_api_07_1059.html
sourcePath: /source/zh/canncommercial/900/API/aolapi/atlasascendc_api_07_1059.html
indexId: 03c2da5369486db7a581b06de1be23716d7edb548a5da4e4f6ed84469a2d202070
---
# OP_OUTPUT

#### 宏功能

用于封装算子的输出aclTensor和aclTensorList。


#### 宏原型

```
OP_OUTPUT(x...)
```


#### 参数说明

| 参数 | 输入/输出 | 说明 |
| --- | --- | --- |
| x... | 输入 | 输出的aclTensor和aclTensorList。 |


#### 约束说明

如果算子包含非aclTensor且非aclTensorList的输出参数，需要先调用aclOpExecutor::ConvertToTensor将参数转换为aclTensor。


#### 调用示例

```
// 封装算子的1个输出参数addOut
OP_OUTPUT(addOut);
```
