singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-singa] ShichengChen commented on a change in pull request #517: SINGA-474 squeeze operator
Date Thu, 15 Aug 2019 06:33:30 GMT
ShichengChen commented on a change in pull request #517: SINGA-474 squeeze operator
URL: https://github.com/apache/incubator-singa/pull/517#discussion_r314188881
 
 

 ##########
 File path: python/singa/autograd.py
 ##########
 @@ -2194,6 +2194,30 @@ def log(x):
     return Log()(x)[0]
 
 
+class Squeeze(Operation):
+    def __init__(self,axis=[]):
+        super(Squeeze, self).__init__()
+        self.axis=axis
+
+    def forward(self, x):
+        self.cache=x.shape()
+        cur = list(self.cache)
 
 Review comment:
   sorry, I fixed the bug followed your code.

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