singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-singa] chrishkchris commented on a change in pull request #485: SINGA -475 add Sub operator implementation to singa
Date Wed, 07 Aug 2019 16:38:36 GMT
chrishkchris commented on a change in pull request #485: SINGA -475 add Sub operator implementation
to singa
URL: https://github.com/apache/incubator-singa/pull/485#discussion_r311652134
 
 

 ##########
 File path: python/singa/autograd.py
 ##########
 @@ -1828,3 +1828,21 @@ def backward(self, dy):
 
 def leakyrelu(x, a=0.01):
     return LeakyRelu(a)(x)[0]
+
+
+class Sub(Operation):
+    def __init__(self):
+        super(Sub, self)._init_()    
 
 Review comment:
   line1835:      super(Sub, self)._init_()  
   should be
    super(Sub, self).__init__()  
   
    

----------------------------------------------------------------
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