You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/03/13 03:50:08 UTC

[GitHub] [incubator-mxnet] wkcn commented on issue #14391: as_in_context() does not copy the gradient to the new context

wkcn 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-472269174
 
 
   `as_in_context` will return a new copied NDArray object, but it doesn't copy the gradient.
   If you need to copy the gradient, `a.grad.as_in_context(ctx)` is okay.

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