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

# GetInputTensor

#### 头文件/库文件

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


#### 功能说明

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


#### 函数原型

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


#### 参数说明

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


#### 返回值说明

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


#### 约束说明

无
