vpc_set_chn_opt_attr

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

x

Atlas A2 training products/Atlas A2 inference products

x

Atlas training products

x

Atlas inference products

x

Atlas 200I/500 A2 inference products

x

Function Usage

Sets optional channel attributes.

Prototype

  • C Prototype
    1
    hi_s32 hi_mpi_vpc_set_chn_opt_attr(hi_vpc_chn chn, const hi_opt_attr* opt_attr)
    
  • Python Function
    1
    task_id, ret = acl.himpi.vpc_set_chn_opt_attr(chn, opt_attr)
    

Parameter Description

Parameter

Description

chn

Int, channel ID for image processing.

  • Atlas inference products: The value range of this parameter is [0, 256). The maximum number of channels is 256.
  • Atlas A2 training products/Atlas A2 inference products: The value range of this parameter is [0, 256). The maximum number of channels is 256.
  • Atlas 200I/500 A2 inference products: The value range of this parameter is [0, 128). The maximum number of channels is 128.
  • Atlas A3 training products/Atlas A3 inference products: The value range of this parameter is [0, 256). The maximum number of channels is 256.

opt_attr

Dict, optional channel attributes. For details, see hi_opt_attr.

Return Value Description

Return Value

Description

ret

ret: int.

Restrictions

None.