revert input size check
@@ -9,6 +9,7 @@ class SquaredError(function.Function):
"""Squared error function."""
def check_type_forward(self, in_types):
+ type_check.expect(in_types.size() == 2)
type_check.expect(
in_types[0].dtype == numpy.float32,
in_types[1].dtype == numpy.float32,
