[object Object][object Object][object Object]undefined
[object Object]
  • Description: Performs transparency multiplication on tensors rgb and alpha.

  • Formula: out = rgb * ((broadcast)alpha/255)

  • The following is an example: If rgb is a three-channel color image, and alpha is the transparency (single channel). After this operator is used, a three-channel image with transparency can be generated.

[object Object]

Each operator has calls. First, aclnnMrgbaCustomGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnMrgbaCustom is called to perform computation.

[object Object]
[object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns:

    [object Object]: status code. For details, see .

    The first-phase API implements input parameter validation. The following error codes may be returned.

    [object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns:

    [object Object]: status code. For details, see .

[object Object]
  • Deterministic computation:
    • aclnnMrgbaCustom defaults to a deterministic implementation.
[object Object]

The following example is for reference only. For details, see .

[object Object]