joddiy commented on a change in pull request #496: SINGA-474 Mean operator URL: https://github.com/apache/incubator-singa/pull/496#discussion_r309570624
########## File path: python/singa/autograd.py ########## @@ -354,6 +354,40 @@ def backward(self, dy): return singa.__mul__(dy, dx) +def relu(x): + return ReLU()(x)[0] + +class Mean(Operation): + def __init__(self): Review comment: do you need some comments to indicate this function is element-wise mean? ---------------------------------------------------------------- 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