- Description: Performs backpropagation of . It is used to compute the gradient of the input tensor, so that the model parameters can be updated during backpropagation.
- Formula:
Each operator has calls. First, aclnnGroupNormBackwardGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnGroupNormBackward is called to perform computation.
Parameters
[object Object][object Object]Atlas training products[object Object]:
- The data types of
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object], and[object Object]cannot be BFLOAT16. - The data types of
[object Object]and[object Object]must be the same.
- The data types of
[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]:
The data types of
[object Object]and[object Object]must be the same.Ascend 950PR/Ascend 950DT:
The mapping between the data types supported by the
[object Object]and[object Object]parameters is as follows:[object Object]undefined
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 computation:
- aclnnGroupNormBackward defaults to a non-deterministic implementation. You can call aclrtCtxSetSysParamOpt to enable deterministic computation.
The following example is for reference only. For details, see .