singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [singa] chrishkchris commented on issue #674: Autograd Layer constructor
Date Sun, 12 Apr 2020 02:42:45 GMT
chrishkchris commented on issue #674: Autograd Layer constructor
URL: https://github.com/apache/singa/issues/674#issuecomment-612553917
 
 
   > I think it would be better to define a new function to wrap these lines:
   > 
   > ```
   > def execute_once(fn):
   >     get flag
   >     disable graph
   >     fn()
   >     set flag
   > ```
   
   @XJDKC Since we have used this stucture at least 2 times before, this wrapper should be
useful. Could you help us wrap these line to turn off the buffering temporatory for tensor
initialization (need to select the most suitable place/class to add the wrapper)

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