JeanKossaifi opened a new issue #11099: Fancy indexing with a list instead of a 
tuple
URL: https://github.com/apache/incubator-mxnet/issues/11099
 
 
   Currently, MXNet's fancy indexing will fail when indexing with a list rather 
than a tuple (while it works with NumPy or PyTorch).
   
   Minimal example to reproduce the issue:
   
   ```python
   import mxnet.ndarray as nd
   
   # Creating a simple third order tensor
   a = nd.arange(24).reshape((3, 4, 2))
   
   # This works fine
   a[[1, 2, 1], slice(None), [0, 1, 2]]
   
   # This should work but does not
   a[[slice(None), [1, 2, 1], [0, 1, 2]]]
   
   # This works as expected
   a[tuple([slice(None), [1, 2, 1], [0, 1, 2]])]

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


With regards,
Apache Git Services

Reply via email to