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.
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.
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]
- Deterministic computation:
- aclnnMrgbaCustom defaults to a deterministic implementation.
The following example is for reference only. For details, see .