---
title: MakeOutputRefInput
description: "- 头文件：#include <exe_graph/runtime/eager_op_execution_context.h>"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/atlasgeapi_07_0696.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/atlasgeapi_07_0696.html
indexId: 753f83f4ecde27c76b4adf767e6de01a1a11b8be675413396a185a5d2cfc829e72
---
# MakeOutputRefInput

#### 头文件/库文件

- 头文件：#include <exe_graph/runtime/eager_op_execution_context.h>
- 库文件：liblowering.so


#### 功能说明

指定某输出的内存地址引用自某个输入。


#### 函数原型

```
Tensor *MakeOutputRefInput(size_t output_index, size_t input_index) const
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| output\_index | 输入 | 输出索引。 |
| input\_index | 输入 | 输入索引。 |


#### 返回值说明

output_index对应的输出Tensor指针。


#### 约束说明

无
