Function: get_aipp_type
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
Obtains the AIPP type (dynamic or static) supported by an input of a model, and the index of the input configured with dynamic AIPP.
Prototype
- C Prototype
1aclError aclmdlGetAippType(uint32_t modelId, size_t index, aclmdlInputAippType *type, size_t *dynamicAttachedDataIndex)
- Python Function
1type, dynamic_attached_data_index, ret = acl.mdl.get_aipp_type(model_id, index)
Parameter Description
|
Parameter |
Description |
|---|---|
|
model_id |
Int, model ID. You can obtain the model ID after the model is successfully loaded by calling the following APIs: |
|
index |
Int, index of the model input. |
Return Value Description
|
Return Value |
Description |
|---|---|
|
type |
Int, AIPP type of the specified model input. For details, see aclmdlInputAippType. |
|
dynamic_attached_data_index |
Int, returned information.
|
|
ret |
Int, error code: 0 on success; else, failure. |