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

#### 宏功能

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


#### 宏原型

```
OP_INPUT(x...)
```


#### 参数说明

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


#### 约束说明

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


#### 调用示例

```
// 封装算子的两个输入参数，self和other
OP_INPUT(self, other);
```
