From 936123dc20590672df51417ecad6b92a1480c7dd Mon Sep 17 00:00:00 2001 From: Maxxhim <maxc2507@gmail.com> Date: Fri, 3 Apr 2020 15:15:20 +0200 Subject: [PATCH] j'ai fais de la merde et j'arrive pas a corriger les merges --- functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.py b/functions.py index dcb4d1b..cb80c1a 100644 --- a/functions.py +++ b/functions.py @@ -143,7 +143,7 @@ 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, self.y.data.transpose()) + self.dx = grad * np.add(self.x.data, self.y.data.transpose()) self.dy = grad * np.add(self.x.data.transpose(), self.y.data) ####################################################################### # --------------------------- END OF YOUR CODE ------------------------ -- GitLab