文档
注册

函数:get_input_index_by_name

C函数原型

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

Python函数

index, ret = acl.mdl.get_input_index_by_name(model_desc, name)

函数功能

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

输入说明

model_desc:int,aclmdlDesc类型数据的指针。

name:str,指定输入名称。

返回值说明

index:int,获取对应输入的索引编号。

ret:int,错误码。

  • 返回0表示成功。
  • 返回其它值表示失败。

约束说明

注意事项

动态Batch和动态分辨率输入的名称固定为"ascend_mbatch_shape_data",动态AIPP输入的名称固定为"ascend_dynamic_aipp_data"。

搜索结果
找到“0”个结果

当前产品无相关内容

未找到相关内容,请尝试其他搜索词