sciai.architecture.SSE

View Source On Gitee
class sciai.architecture.SSE[source]

Sum square error with 0.

Inputs:
  • x (Tensor) - Input Tensor for SSE calculation.

Outputs:

Tensor, Sum square error between x and 0.

Supported Platforms:

GPU CPU Ascend

Examples

>>> import mindspore as ms
>>> from mindspore import ops
>>> from sciai.architecture import SSE
>>> mse = SSE()
>>> x = ops.ones((2, 3), ms.float32)
>>> res = mse(x)
>>> print(res)
6.0