Description: Computes the backward pass of (high-performance version) to obtain the gradient of the input tensor for model parameter updates.
Formula:
When training is true:
When training is false:
Each operator has calls. First, aclnnFastBatchNormBackwardGetWorkspaceSize is called to obtain the input parameters and compute the required workspace size based on the process. Then, aclnnFastBatchNormBackward is called to perform computation.
Parameters
[object Object][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],[object Object],[object Object],[object Object],[object Object],[object Object], and[object Object]must be the same as that of[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]
- Deterministic computation:
- aclnnFastBatchNormBackward defaults to a deterministic implementation.
The following example is for reference only. For details, see .