sciai.architecture.MSE
- class sciai.architecture.MSE[source]
Mean square error with 0.
- Inputs:
x (Tensor) - Input Tensor for MSE calculation.
- Outputs:
Tensor, Mean square error between x and 0.
- Supported Platforms:
GPU
CPU
Ascend
Examples
>>> import mindspore as ms >>> from mindspore import ops >>> from sciai.architecture import MSE >>> mse = MSE() >>> x = ops.ones((2, 3), ms.float32) >>> res = mse(x) >>> print(res) 1.0