---
title: InputTensorInfo
description: "输入Tensor信息，头文件位于CANN软件安装后文件存储路径下的include/ge/ge_api_types.h。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/atlasgeapi_07_0145.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/atlasgeapi_07_0145.html
indexId: 823f1fb24f5c88e47d139e755035241cb1b1faaf178e2a0030964de2dad9acb672
---
# InputTensorInfo

输入Tensor信息，头文件位于CANN软件安装后文件存储路径下的include/ge/ge_api_types.h。

```
struct InputTensorInfo {
  uint32_t data_type;               // data type
  std::vector<int64_t> dims;        // shape description
  void *data;                       // tensor data
  int64_t length;                   // tensor length
};
```
