# aclmdlGetOutputIndexByName

#### 函数功能

根据模型中的输出名称获取对应输出的索引编号。同步接口。


#### 函数原型

aclError aclmdlGetOutputIndexByName(const aclmdlDesc *modelDesc, const char *name, size_t *index)


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| modelDesc | 输入 | aclmdlDesc类型的指针。 需提前调用aclmdlCreateDesc接口创建aclmdlDesc类型的数据。 |
| name | 输入 | 输出名称的指针。 |
| index | 输出 | 输出的索引编号的指针。 |


#### 返回值说明

返回0表示成功，返回非0表示失败。
