Computes the backpropagation of . reduction specifies the compute method of the loss function. It can be set to none, mean, or sum. none indicates that no reduction is applied; mean indicates that the sum of the output will be divided by the number of elements in the output; sum indicates that the output will be summed.
Each operator has calls. First, aclnnL1LossBackwardGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnL1LossBackward is called to perform computation.
Parameters
[object Object]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]
- Deterministic computation:
- aclnnL1LossBackward defaults to a deterministic implementation.
The following example is for reference only. For details, see .