Description: Uses the global mean value and standard deviation reciprocal as the operator input to perform BatchNorm on x. This operator is an element-level BatchNorm operation function used to normalize input data in specific scenarios. Compared with , aclnnBatchNormElemt may be adjusted for specific hardware or optimization requirements.
Formula:
The relationship between the standard deviation and variance is as follows:
Each operator has calls. First, aclnnBatchNormElemtGetWorkspaceSize is called to obtain the input parameters and compute the required workspace size based on the process. Then, aclnnBatchNormElemt is called to perform computation.
Parameters
[object Object]- [object Object]Atlas training products[object Object] and [object Object]Atlas inference products[object Object]: The data types of
[object Object],[object Object],[object Object],[object Object],[object Object], and[object Object]do not support BFLOAT16.
- [object Object]Atlas training products[object Object] and [object Object]Atlas inference products[object Object]: The data types 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:
- aclnnBatchNormElemt defaults to a non-deterministic implementation. You can call aclrtCtxSetSysParamOpt to enable deterministic compute.
The following example is for reference only. For details, see .