chainer.functions.squared_error¶
-
chainer.functions.
squared_error
(x0, x1)[source]¶ Squared error function.
This function computes the squared error between two variables:
\[(x_0 - x_1)^2\]where operation is done in elementwise manner. Note that the error is not scaled by 1/2:
Parameters: - x0 (
Variable
ornumpy.ndarray
orcupy.ndarray
) – Input variable. - x1 (
Variable
ornumpy.ndarray
orcupy.ndarray
) – Input variable.
Returns: A variable holding an array representing the squared error of two inputs.
Return type: - x0 (