diff --git a/functions.py b/functions.py index f93daed5779bd8128a03b31403e5fec3597ef52f..196680bc80356237158fcd3a20467e27e1a9697e 100644 --- a/functions.py +++ b/functions.py @@ -91,8 +91,8 @@ class Mul(_Function): # TODO: Implement the derivative dx for this opetation and add the # result of the chain rule on self.dx. ####################################################################### - self.dx = grad * y.data - self.dy = grad * x.data + self.dx = grad * self.y + self.dy = grad * self.x ####################################################################### # --------------------------- END OF YOUR CODE ------------------------ #######################################################################