ZheyuYe opened a new issue #17327: np.ndarray indexing after hybridize
URL: https://github.com/apache/incubator-mxnet/issues/17327
 
 
   ## Description
   Indexing is an important feature of numpy that supports complex positioning 
and value operations as [Numpy | 
Indexing](https://www.geeksforgeeks.org/numpy-indexing/). The mxnet deepnumpy 
only supply the basic indexing operation as
   ```
   gathered_data = sequence[indices_x, indices_y]
   ```
   whereas the above operation will fail after hybridize, see 
[here](https://github.com/apache/incubator-mxnet/pull/16621). Currently, the 
more effective method is only 
[mx.npx.pick](https://numpy.mxnet.io/api/deepnumpy/generated/mxnet.npx.pick.html),
 but it only supports one-dimensional selection instead of providing gather_nd 
operation( for nd.ndarray) can select array elements multidimensionally.
   
   The temporary solution would be adding the gather_nd operation for 
mx.np.ndarray, and the hybridized indexing opertaion could be added in future 
work.
   @sxjscience @haojin2 

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


With regards,
Apache Git Services

Reply via email to