wkcn commented on issue #14244: Feature request: share memory between 
numpy.array and mxnet.ndarray
URL: 
https://github.com/apache/incubator-mxnet/issues/14244#issuecomment-481039905
 
 
   I think adding a new argument may be better.
   
   # NDArray to NumPy
   a = mx.nd.array([1,2,3])
   b = a.asnumpy(shared=True)
   
   # NumPy to NDArray
   c = np.array([4,5])
   d = mx.nd.array(c, shared=True)

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to