This API is used to calculate the mean squared error between each element in the input x and the target y. reduction specifies the reduction to be applied to the output. The value can be none, mean, or sum. mean indicates that the output will be averaged by reducing axis 0, and sum indicates that the output will be summed by reducing axis 0.
Formula:
If
[object Object]is[object Object]:is self, is target, and is the batch size. If
[object Object]is not[object Object]:
Each operator has calls. First, aclnnMseLossOutGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnMseLossOut 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 compute:
- aclnnMseLossOut defaults to a deterministic implementation.
The following example is for reference only. For details, see .