singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-singa] nudles commented on a change in pull request #522: SINGA 475 - add And operator
Date Fri, 16 Aug 2019 14:39:47 GMT
nudles commented on a change in pull request #522: SINGA 475 - add And operator
URL: https://github.com/apache/incubator-singa/pull/522#discussion_r314749782
 
 

 ##########
 File path: python/singa/autograd.py
 ##########
 @@ -2319,3 +2319,24 @@ def backward(self, dy):
 def max(a,b):
     return Max()(a,b)[0]
 
+
+class And(Operation):
+    def __init__(self):
+        super(And, self).__init__()
+
+    def forward(self, a, b):
+        m = singa.__div__(a,b)
 
 Review comment:
   there will be errors if b has 0s.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message