Obtains the AIPP type (dynamic or static) supported by an input of a model, and the index of the dynamic AIPP input.
aclError aclmdlGetAippType(uint32_t modelId, size_t index, aclmdlInputAippType *type, size_t *dynamicAttachedDataIndex)
Parameter |
Input/Output |
Description |
|---|---|---|
modelId |
Input |
Model ID. A successful aclmdlLoadFromFile, aclmdlLoadFromMem, aclmdlLoadFromFileWithMem, or aclmdlLoadFromMemWithMem call returns a model ID. |
index |
Input |
Index of the model input. |
type |
Output |
Pointer to the AIPP type of the model input. |
dynamicAttachedDataIndex |
Output |
When type is not ACL_DATA_WITH_DYNAMIC_AIPP, 0xFFFFFFFF is returned, indicating a failure. When type is ACL_DATA_WITH_DYNAMIC_AIPP, the index of the dynamic AIPP input is returned. |
0 on success; else, failure.
For the API call example, see Dynamic AIPP (Multiple Dynamic AIPP Inputs).