mse_loss

paddle.fluid.layers.mse_loss(input, label)[source]

This op accepts input predications and target label and returns the mean square error.

The loss can be described as:

\[Out = MEAN((input - label)^2)\]
Parameters
  • input (Variable) – Input tensor, the data type should be float32.

  • label (Variable) – Label tensor, the data type shoulf be float32.

Returns

The tensor variable storing the mean square error difference of input and label.

Return type

Variable

Return type: Variable.

Examples