aclmdlGetAippType
Description
Obtains the AIPP type (dynamic or static) supported by an input of a model, and the index of the dynamic AIPP input.
Prototype
aclError aclmdlGetAippType(uint32_t modelId, size_t index, aclmdlInputAippType *type, size_t *dynamicAttachedDataIndex)
Parameters
|
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. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.