Function: get_aipp_type

C Prototype

aclError aclmdlGetAippType(uint32_t modelId, size_t index, aclmdlInputAippType *type, size_t *dynamicAttachedDataIndex)

Python Function

type, dynamic_attached_data_index, ret = acl.mdl.get_aipp_type(model_id, index)

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.

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, index entered in the model.

Return Value

type: int, AIPP type of the specified model input. For details, see aclmdlInputAippType.

dynamic_attached_data_index: int, returned information.

  • 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 input configured with dynamic AIPP is returned.

ret: int, error code.

Restrictions

None

Reference

For details about the API call example, see Dynamic AIPP (Multiple Dynamic AIPP Inputs).