From 56f9b0dfa7365b21c02933cf9b3800ce02afa53b Mon Sep 17 00:00:00 2001
From: Maxxhim <maxc2507@gmail.com>
Date: Fri, 3 Apr 2020 00:47:39 +0200
Subject: [PATCH] patch v1 Multiplication

---
 functions.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/functions.py b/functions.py
index f93daed..196680b 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 ------------------------
         #######################################################################
-- 
GitLab