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 2017/12/19 03:48:59 UTC

[GitHub] reminisce commented on issue #9130: Inconsistent behavior of NDArray Indexing

reminisce commented on issue #9130: Inconsistent behavior of NDArray Indexing
URL: https://github.com/apache/incubator-mxnet/issues/9130#issuecomment-352632052
 
 
   For efficient indexing, `__getitem__` slicing would create a view if the sliced elements are contiguous in memory, or a copy if the sliced elements are not contiguous. It's determined by the fact that we only handle `NDArray`s with contiguous memory allocation in MXNet.
   
   Operator slice in imperative mode always returns a copy like most of the other operators.
   
   We can make it clear in the docstring of `__getitem__`.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services