Function: set_aipp_rbuv_swap_switch

Applicable Products

Product

Supported (√/x)

Ascend 950PR/Ascend 950DT

x

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas training products

√

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Function Usage

Sets the RB or UV channel swap switch before CSC in dynamic AIPP scenarios.

Prototype

  • C Prototype
    1
    aclError aclmdlSetAIPPRbuvSwapSwitch(aclmdlAIPP *aippParmsSet, int8_t rbuvSwapSwitch)
    
  • Python Function
    1
    ret = acl.mdl.set_aipp_rbuv_swap_switch(aipp_parms_set, rbuv_swap_switch)
    

Parameter Description

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.

rbuv_swap_switch

Int, RB or UV channel swap switch.

Value range:

  • 0 (default): disabled
  • 1: enabled

Return Value Description

Return Value

Description

ret

Int, error code.