- 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: N indicates the dimension of the axis on which normalization computation is performed, that is, the size of the normalized axis dimension.
Each operator has calls. First, aclnnLayerNormBackwardGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnLayerNormBackward is called to perform computation.
Parameters
[object Object][object Object]Atlas inference products[object Object] and [object Object]Atlas training products[object Object]:
The data type of gradOut, input, mean, rstd, weightOptional, biasOptional, gradInputOut, gradWeightOut, and gradBiasOut does not support BFLOAT16.
Returns
[object Object]: status code. For details, see .The first-phase API implements input parameter validation. The following error codes may be returned.
[object Object]
Shape constraints:
The shape of gradOut, input, mean, rstd, weightOptional (non-empty), biasOptional (non-empty), gradInputOut (non-empty), gradWeightOut (non-empty), or gradBiasOut (non-empty) supports one to eight dimensions.
Deterministic computation:
aclnnLayerNormBackward defaults to a deterministic implementation.
The following example is for reference only. For details, see .