diff --git a/onn/activation.py b/onn/activation.py index 5bbae0d..69b18f4 100644 --- a/onn/activation.py +++ b/onn/activation.py @@ -219,4 +219,4 @@ class HardClip(Layer): # aka HardTanh when at default settings return np.clip(X, self.lower, self.upper) def backward(self, dY): - return dY * ((self.X <= self.lower) & (self.X >= self.upper)) + return dY * ((self.X >= self.lower) & (self.X <= self.upper))