chainer.functions.absolute_error¶
-
chainer.functions.
absolute_error
(x0, x1)[source]¶ Element-wise absolute error function.
Computes the element-wise absolute error \(L\) between two inputs \(x_0\) and \(x_1\) defined as follows.
\[L = |x_0 - x_1|\]Parameters: - x0 (
Variable
ornumpy.ndarray
orcupy.ndarray
) – First input variable. - x1 (
Variable
ornumpy.ndarray
orcupy.ndarray
) – Second input variable.
Returns: An array representing the element-wise absolute error between the two inputs.
Return type: - x0 (