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: us...@infra.apache.org With regards, Apache Git Services