Description: Collects the mean value and variance of data on all devices and updates the global mean value and variance.
Formula:
Each operator has calls. First, aclnnSyncBatchNormGatherStatsGetWorkspaceSize is called to obtain the input parameters and to compute the workspace size required for computation. Then, aclnnSyncBatchNormGatherStats is called to perform computation.
[object Object]
[object Object]
Parameters
[object Object]- [object Object]Atlas A3 training products/Atlas A3 inference products[object Object] and [object Object]Atlas A2 training products/Atlas A2 inference products[object Object]: The data type of
[object Object],[object Object],[object Object],[object Object],[object Object]and[object Object]cannot be BFLOAT16.
- [object Object]Atlas A3 training products/Atlas A3 inference products[object Object] and [object Object]Atlas A2 training products/Atlas A2 inference products[object Object]: The data type of
Returns
[object Object]: status code. For details, see .The first-phase API implements input parameter verification. The following errors may be thrown:
[object Object]
- Deterministic compute:
- aclnnSyncBatchNormGatherStats defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]