Function: get_first_aipp_info
C Prototype |
aclError aclmdlGetFirstAippInfo(uint32_t modelId, size_t index, aclAippInfo *aippInfo) |
|---|---|
Python Function |
aipp_info, ret = acl.mdl.get_first_aipp_info(model_id, index) |
Function Usage |
Obtains the AIPP (static or dynamic) configuration of a model. AIPP provides the following operations and they are executed in the exact sequence:
|
Input 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, sequence number of the specified input to the model |
Return Value |
aipp_info: dict, static AIPP configuration of the specified input. For details, see aclAippInfo. For details, see ATC Instructions. ret: int, error code.
|
Restrictions |
To obtain the dynamic AIPP configuration, this API call returns the values of only the following parameters in aipp_info: srcFormat, srcDatatype, srcDimNum, shapeCount, and outDims. |