This API is used to calculate the mean squared error between each element in the input x and the target y.
Formula:
- If
[object Object]is[object Object]:
- is self, is target, and is the batch size. If
[object Object]is not[object Object]:
- If
Each operator has calls. First, aclnnMseLossGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnMseLoss is called to perform computation.
[object Object]
[object Object]
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:
- aclnnMseLoss defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]