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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to