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

#### 头文件/库文件

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


#### 功能说明

获取index指定的输出Tensor指针。


#### 函数原型

```
const Tensor *GetOutputTensor(size_t index) const
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| index | 输入 | 输出索引。 |


#### 返回值说明

输出Tensor指针，异常时返回空指针。


#### 约束说明

无
