[object Object]

[object Object][object Object]undefined
[object Object]
  • Description: Performs summation and square summation on the axes (N, H, W) other than the input C axis.
  • Formula:sumi=n=0N1h=0H1w=0W1x(n,i,h,w)sum_i = \sum_{n=0}^{N-1} \sum_{h=0}^{H-1} \sum_{w=0}^{W-1} x_{(n,i,h,w)} squareSumi=n=0N1h=0H1w=0W1x(n,i,h,w)2squareSum_i = \sum_{n=0}^{N-1} \sum_{h=0}^{H-1} \sum_{w=0}^{W-1} x_{(n,i,h,w)}^2
[object Object]

Each operator has calls. First, aclnnBatchNormReduceGetWorkspaceSize is called to obtain the input parameters and compute the required workspace size based on the process. Then, aclnnBatchNormReduce 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 verification. The following errors may be thrown.

    [object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns:

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

[object Object]
  • Deterministic compute:
    • aclnnBatchNormReduce defaults to a non-deterministic implementation. You can call aclrtCtxSetSysParamOpt to enable deterministic compute.
[object Object]

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

[object Object]