reminisce opened a new pull request #17452: Fix indexing with zero dim array URL: https://github.com/apache/incubator-mxnet/pull/17452 ## Description ## Fix the problem of indexing ndarrays with zero-dim arrays as indices not treated as integers. After the fix, the following should be equivalent. ```python >>> from mxnet import np, npx >>> npx.set_np() >>> a = np.array([1, 2, 3], dtype='int32') >>> b = np.arange(3, dtype='int32') >>> b[1] == b[a[0]] array(True) >>> b[2] == b[a.argmax()] array(True) ``` @haojin2 @sxjscience @astonzhang
---------------------------------------------------------------- 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
