函数:get_output_index_by_name
产品支持情况
产品 |
是否支持 |
---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
功能说明
根据模型中的输出名称获取对应输出的索引编号。
函数原型
- C函数原型
1
aclError aclmdlGetOutputIndexByName(const aclmdlDesc *modelDesc, const char *name, size_t *index)
- python函数
1
index, ret = acl.mdl.get_output_index_by_name(model_desc, name)
参数说明
参数名 |
说明 |
---|---|
model_desc |
int,aclmdlDesc类型数据的指针地址。 需提前调用acl.mdl.create_desc接口创建aclmdlDesc类型的数据。 |
name |
str,指定输入名称。 |
返回值说明
返回值 |
说明 |
---|---|
index |
int,获取对应输入的索引编号。 |
ret |
int,错误码。
|
父主题: aclmdlDesc