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

#### 头文件/库文件

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


#### 功能说明

根据输入index，获取输入tensor指针。


#### 函数原型

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


#### 参数说明

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


#### 返回值说明

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


#### 约束说明

无
