def check_backward(self, x_data, y_grad, axis=None, keepdims=False): gradient_check.check_backward(functions.Min(axis=axis, keepdims=keepdims), x_data, y_grad, eps=1e-4, rtol=1e-3, atol=1e-3)
def test_duplicate_axis(self): with self.assertRaises(ValueError): functions.Min((0, 0))
def test_invalid_axis_type_in_tuple(self): with self.assertRaises(TypeError): functions.Min((1, 'x'))
def test_invalid_axis_type(self): with self.assertRaises(TypeError): functions.Min([0])