[object Object][object Object][object Object]undefined
[object Object]
  • 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 E[x]=xˉE[x] = \bar{x} indicates the mean value of xx, and Var[x]=1ni=1n(xiE[x])2Var[x] = \frac{1}{n} * \sum_{i=1}^n(x_i - E[x])^2 indicates the variance of xx. Then:
    {groupNormOut=xE[x]Var[x]+epsγ+βmeanOut=E[x]rstdOut=1Var[x]+eps\left\{ \begin{array} {rcl} groupNormOut& &= \frac{x - E[x]}{\sqrt{Var[x] + eps}} * \gamma + \beta \\ meanOut& &= E[x]\\ rstdOut& &= \frac{1}{\sqrt{Var[x] + eps}}\\ \end{array} \right.
    • Silu:
    siluOut=groupNormOut1+egroupNormOutsiluOut = \frac{groupNormOut}{1+e^{-groupNormOut}}
    • Quant:
    out=round(siluOut/quantScale)out = round(siluOut / quantScale)
[object Object]

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]
[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:
    • The aclnnGroupNormSiluQuant is implemented in deterministic mode by default.
[object Object]

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

[object Object]