From e2bbbdf79d57ca93475df43ffb0efe23d7949d98 Mon Sep 17 00:00:00 2001
From: Maxxhim <maxc2507@gmail.com>
Date: Fri, 3 Apr 2020 14:50:21 +0200
Subject: [PATCH] Revert "patch v2 matrix multiplication"

This reverts commit 28bae8142e427aadcc65e75f0ffa64568b3b59d1.
---
 functions.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/functions.py b/functions.py
index cb80c1a..7eded80 100644
--- a/functions.py
+++ b/functions.py
@@ -143,8 +143,8 @@ class MatMul(_Function):
         # TODO: Implement the derivative dx for this opetation and add the
         # result of the chain rule on self.dx.
         #######################################################################
-        self.dx = grad * np.add(self.x.data, self.y.data.transpose())
-        self.dy = grad * np.add(self.x.data.transpose(), self.y.data)
+        self.dx = np.add(self.x.data, self.y.data.transpose())
+        self.dy = np.add(self.x.data.transpose(), self.y.data)
         #######################################################################
         # --------------------------- END OF YOUR CODE ------------------------
         #######################################################################
-- 
GitLab