---
title: aclmdlGetInputNameByIndex
description: "根据模型描述信息获取模型中指定输入的输入名称。同步接口。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/aadgc/aclcppdevg_03_1754.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/aadgc/aclcppdevg_03_1754.html
indexId: eae18a2bf01fc4cbb37b1c7df7883cf8a262b6ca5d3d7f5765ba9f4c2ffd6ecc105
---
# aclmdlGetInputNameByIndex

#### 函数功能

根据模型描述信息获取模型中指定输入的输入名称。同步接口。


#### 函数原型

const char *aclmdlGetInputNameByIndex(const aclmdlDesc *modelDesc, size_t index)


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| modelDesc | 输入 | aclmdlDesc类型的指针。 需提前调用aclmdlCreateDesc接口创建aclmdlDesc类型的数据。 |
| index | 输入 | 指定获取第几个输入的名称，index值从0开始。 |


#### 返回值说明

返回指定输入的输入名称。
