def check_backward(self, x_data, y_grad): gradient_check.check_backward(functions.Clip(self.x_min, self.x_max), x_data, y_grad)
def test_invalid_interval(self): with self.assertRaises(AssertionError): functions.Clip(1.0, -1.0)
def check_backward(self, x_data, y_grad): gradient_check.check_backward( functions.Clip(self.x_min, self.x_max), x_data, y_grad, dtype=numpy.float64)