- Description: Normalizes the elements of the input tensor x by computing the mean and standard deviation, producing an output tensor with zero mean and unit variance.
- Formula:
Each operator has calls. First, aclnnDeepNormGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation flow. Then, aclnnDeepNorm is called to perform computation.
[object Object]
[object Object]
Parameters
[object Object]- For [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]and[object Object]do not support BFLOAT16.
- For [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]
Functional dimensions:
- Data type support:
- [object Object]Atlas inference products[object Object]: x, gx, beta, gamma, and yOut support FLOAT32 and FLOAT16.
- [object Object]Atlas A2 training products/Atlas A2 inference products[object Object] and [object Object]Atlas A3 training products/Atlas A3 inference products[object Object]: x, gx, beta, gamma, and yOut support FLOAT32, FLOAT16, and BFLOAT16.
- rstdOut and meanOut support FLOAT32 only.
- Data format support: ND
- Data type support:
Unsupported types:
DOUBLE: not supported by the instruction set.
Boundary value specifications:
- The output is Inf when the input is Inf.
- The output is NaN when the input is NaN.
Deterministic computation:
- aclnnDeepNorm defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]