ShichengChen commented on a change in pull request #416: singa-onnx
URL: https://github.com/apache/incubator-singa/pull/416#discussion_r264102485
 
 

 ##########
 File path: python/singa/tensor.py
 ##########
 @@ -87,10 +87,10 @@ class Tensor(object):
                      grad but not store grad; But if a tensor stores grad
                      then it must require grad.
     '''
-
+    tensor_count = 0
 
 Review comment:
   `if name is None:
               self.name = 'Dummy#{}'.format(Tensor.tensor_count)
               Tensor.tensor_count += 1
           else:
               self.name = name`
   add default name, we did not have self.name before, so i added it

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