Function: get_input_index_by_name

C Prototype

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

Python Function

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

Function Usage

Obtains the index of a model input based on the input name.

Input Description

model_desc: int, pointer address of the data of the aclmdlDesc type.

Call acl.mdl.create_desc to create data of the aclmdlDesc type in advance.

name: str, input name.

Return Value

index: int, index of the input to be obtained.

ret: int, error code.

Restrictions

None