Skip to content
Snippets Groups Projects
Commit 8570bce4 authored by Maxxhim's avatar Maxxhim
Browse files

patch v1.1 Multiplication

parent 56f9b0df
Branches
Tags
No related merge requests found
...@@ -91,8 +91,8 @@ class Mul(_Function): ...@@ -91,8 +91,8 @@ class Mul(_Function):
# TODO: Implement the derivative dx for this opetation and add the # TODO: Implement the derivative dx for this opetation and add the
# result of the chain rule on self.dx. # result of the chain rule on self.dx.
####################################################################### #######################################################################
self.dx = grad * self.y self.dx = grad * self.y.data
self.dy = grad * self.x self.dy = grad * self.x.data
####################################################################### #######################################################################
# --------------------------- END OF YOUR CODE ------------------------ # --------------------------- END OF YOUR CODE ------------------------
####################################################################### #######################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment