leezu opened a new issue #11551: NDArray __getitem__ reads invalid memory with advanced indexing and negative indices URL: https://github.com/apache/incubator-mxnet/issues/11551 ## Description Consider ```python import mxnet as mx a = mx.nd.ones((10, 10)) print(a[(mx.nd.arange(3), mx.nd.arange(3))]) print(a[(mx.nd.arange(-1, 3), mx.nd.arange(-1, 3))]) ``` The second statement results in non-deterministic and wrong results: ``` % python mxnet_test.py [1. 1. 1.] <NDArray 3 @cpu(0)> [0. 1. 1. 1.] <NDArray 4 @cpu(0)> % python mxnet_test.py [1. 1. 1.] <NDArray 3 @cpu(0)> [4.0069412e+24 1.0000000e+00 1.0000000e+00 1.0000000e+00] <NDArray 4 @cpu(0)> % python mxnet_test.py [1. 1. 1.] <NDArray 3 @cpu(0)> [6.652955e-33 1.000000e+00 1.000000e+00 1.000000e+00] <NDArray 4 @cpu(0)> % ``` ## Environment info (Required) At least on mxnet 1.2 and master
---------------------------------------------------------------- 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
