- This API is used to calculate the group normalization of the input self, output the mean value meanOut, the reciprocal of the standard deviation rstdOut, and the quantization result out of the silu output.
- Formula:
- GroupNorm: Assume indicates the mean value of , and indicates the variance of . Then:
- Silu:
- Quant:
Each operator has calls. You must call aclnnGroupNormSiluQuantGetWorkspaceSize to obtain the workspace size required for computation and the executor that contains the operator execution process, and then call aclnnGroupNormSiluQuant to perform the computation.
[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]
- Deterministic computation:
- The aclnnGroupNormSiluQuant is implemented in deterministic mode by default.
The following example is for reference only. For details, see .
[object Object]