aclmdlGetFirstAippInfo

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 (static or dynamic) configuration of a model. To obtain the dynamic AIPP configuration, this API call returns the values of only the following parameters in the aclAippInfo struct: srcFormat, srcDatatype, srcDimNum, shapeCount, and outDims.

AIPP provides the following functions and they are executed in the exact sequence: Cropping -> CSC -> Mean subtraction/normalization -> Padding.

Prototype

1
aclError aclmdlGetFirstAippInfo(uint32_t modelId, size_t index, aclAippInfo *aippInfo)

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.

aippInfo

Output

Pointer to AIPP configuration. For the type definition, see aclAippInfo.

For details, see "Advanced Features > AIPP" in the Ascend Tensor Compiler (ATC).

Returns

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