ThomasDelteil commented on issue #14391: as_in_context() does not copy the 
gradient to the new context
URL: 
https://github.com/apache/incubator-mxnet/issues/14391#issuecomment-472688222
 
 
   In what case would you not want to copy gradients that has been attached?
   Most as in context happened on data without gradient, I only discovered the
   bug on some niche use case that requires data with gradient attached.
   
   If the data does not have gradient attached the runtime would be the same
   since no gradient would need moving
   
   On Wed, Mar 13, 2019, 19:00 JackieWu <notificati...@github.com> wrote:
   
   > I'm worry copy_grad=True will drop the performance. Assume that it takes
   > 1s to copy the data of a large tensor, it will takes extra 1s to copy the
   > gradient.
   >
   > —
   > You are receiving this because you authored the thread.
   > Reply to this email directly, view it on GitHub
   > 
<https://github.com/apache/incubator-mxnet/issues/14391#issuecomment-472674519>,
   > or mute the thread
   > 
<https://github.com/notifications/unsubscribe-auth/ADi00-T27pr84_lNYc42pd4Jrfq8QmnEks5vWa1JgaJpZM4bphps>
   > .
   >
   

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