diff --git a/functions.py b/functions.py index 604b225f962b8a8c60a88f4a1188ebade0641bd7..93e6e513aa19d7d5dd847cd4e5ad5eb4a0caa818 100644 --- a/functions.py +++ b/functions.py @@ -375,7 +375,7 @@ class ReLu(_Function): # Implement the forward pass and put the result in self.result. # The notbook provide you the formulas for this operation. ####################################################################### - self.result = np.max(0, self.x.data) + self.result = np.maximum(0, self.x.data) ####################################################################### # --------------------------- END OF YOUR CODE ------------------------ #######################################################################