Function: set_aipp_input_format

Applicability

Product

Supported

Atlas 350 Accelerator Card

x

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas training product

Atlas inference product

Atlas 200I/500 A2 inference product

Function Usage

Sets the input format of the source image in the dynamic AIPP scenario.

Prototype

  • C Prototype
    1
    aclError aclmdlSetAIPPInputFormat(aclmdlAIPP *aippParmsSet, aclAippInputFormat inputFormat)
    
  • Python Function
    1
    ret = acl.mdl.set_aipp_input_format(aipp_parms_set, input_format)
    

Parameters

Parameter

Description

aipp_parms_set

Int, pointer address of the dynamic AIPP configuration object. The aclmdlAIPP data must be created by the acl.mdl.create_aipp call in advance.

input_format

Int, input format of the source image. See aclAippInputFormat.

Returns

Return Value

Description

ret

Int, error code.