aclmdlGetAippType

Applicability

Product

Supported

Atlas A3 training products / Atlas A3 inference products

Atlas A2 training products / Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

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

0 on success; else, failure. For details, see aclError.

See Also

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