aclmdlGetAippType

Applicability

Product

Supported

Atlas 350 Accelerator Card

×

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Usage

Obtains the AIPP type (dynamic or static) supported by an input of a model, and the index of the dynamic AIPP input.

Prototype

1
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. For details about the type definition, see aclmdlInputAippType.

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.

Example

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