aclmdlGetAippType

Applicable Products

Product

Supported

Ascend 950PR / Ascend 950DT

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

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

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 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).