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

#### 函数功能

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


#### 函数原型

aclFormat aclmdlGetInputFormat(const aclmdlDesc *modelDesc, size_t index)


#### 参数说明

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


#### 返回值说明

返回指定输入的Format。
