Function: get_input_index_by_name
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Obtains the index of a model input based on the input name.
Prototype
- C Prototype
1aclError aclmdlGetInputIndexByName(const aclmdlDesc *modelDesc, const char *name, size_t *index)
- Python Function
1index, ret = acl.mdl.get_input_index_by_name(model_desc, name)
Parameter Description
Parameter |
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 Description
Return Value |
Description |
|---|---|
index |
Int, index of the input to obtain. |
ret |
Int, error code.
|
Parent topic: aclmdlDesc