Last active
June 6, 2019 19:43
-
-
Save d3lm/7798427249f5a3a3daa9f55944fda6f6 to your computer and use it in GitHub Desktop.
Matrix Multiplication
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class multiply(BinaryOperation): | |
""" | |
Computes a * b, element-wise | |
""" | |
def forward(self, a, b): | |
return a * b | |
def backward(self, upstream_grad): | |
raise NotImplementedError |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment