- Description: Performs backpropagation of . It is used to calculate 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 series products[object Object] and [object Object]Atlas training series products[object Object]:
The data type of
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object], and[object Object]does not support BFLOAT16.
Returns:
aclnnStatus: status code. For details, see .
The first-phase API implements input parameter verification. The following errors may be thrown:
[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 compute:
aclnnLayerNormBackward defaults to a deterministic implementation.
The following example is for reference only. For details, see .