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 #416: singa-onnx
Date Mon, 11 Mar 2019 06:26:50 GMT
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message