chainer.functions.squared_difference¶
-
chainer.functions.
squared_difference
(x1, x2)[source]¶ Squared difference of input variables.
- Parameters
x1 (
Variable
or N-dimensional array) – Input variables to be compared.x2 (
Variable
or N-dimensional array) – Input variables to be compared.
- Returns
(x1 - x2) ** 2
element-wise.- Return type