Description: Performs backpropagation of . It is used to compute the gradient of RmsNorm, that is, compute the gradient of the input tensor during backpropagation.
Formula:
- Forward propagation:
- Backward propagation:
Each operator has calls. First, [object Object] is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, [object Object] is called to perform computation.
Parameters
[object Object]- [object Object]Atlas inference products[object Object]: The data types of
[object Object],[object Object],[object Object], and[object Object]cannot be BFLOAT16.
- [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]
[object Object]Atlas inference products[object Object]: The length of the last axis of the inputs
[object Object],[object Object], and[object Object]must be greater than or equal to 32 bytes.Description of data types supported by different products:
[object Object]Atlas A2 training products/Atlas A2 inference products[object Object], [object Object]Atlas A3 training products/Atlas A3 inference products[object Object], and Ascend 950PR/Ascend 950DT:
[object Object]undefined
[object Object]Atlas inference products[object Object]:
[object Object]undefined
Deterministic compute:
- aclnnRmsNormGrad defaults to a non-deterministic implementation. You can call aclrtCtxSetSysParamOpt to enable deterministic compute.
The following example is for reference only. For details, see .