zhanghang1989 opened a new issue #12699: [Feature Request] Reference Copy 
Option for asnumpy() method
URL: https://github.com/apache/incubator-mxnet/issues/12699
 
 
   ## Description
   Current implementation of `NDArray.asnumpy()` method does not have the 
option to avoid the physical copy in the memory. Another framework of PyTorch 
has a similar method of `Tensor.numpy()`, which does the reference copy. That 
means PyTorch create a `numpy.array()` with the same memory of the 
`torch.Tensor`. We could similarly allow the reference copy option by setting 
an optional `copy` option in `NDArray.asnumpy(copy=False)` method.
   
   @szha @eric-haibin-lin may have further suggestions
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to