Description: Computes the backward pass of , calculating the gradients of tensors x, gx, and gamma, as well as the sum of tensor dy.
Formula:
Where:
Each operator has calls. First, aclnnDeepNormGradGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation flow. Then, aclnnDeepNormGrad is called to perform computation.
[object Object]
[object Object]
Parameters
[object Object]- For [object Object]Atlas inference products[object Object], the data types of
[object Object],[object Object],[object Object],[object Object],[object Object], and[object Object]cannot be BFLOAT16.
- For [object Object]Atlas inference products[object Object], the data types of
Return Value
[object Object]: status code. For details, see .The first-phase API implements input parameter verification. The following errors may be thrown.
[object Object]
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:
- aclnnDeepNormGrad defaults to a non-deterministic implementation. Enabling deterministic computation via aclrtCtxSetSysParamOpt is not supported.
The following example is for reference only. For details, see .
[object Object]