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 2019/12/27 19:45:49 UTC

[GitHub] [incubator-mxnet] reminisce commented on issue #17009: [Numpy] support boolean indexing

reminisce commented on issue #17009: [Numpy] support boolean indexing
URL: https://github.com/apache/incubator-mxnet/pull/17009#issuecomment-569333796
 
 
   I think it should error out in the following case since semantically, there is no axis for 0-d arrays and NumPy raises the error as well.
   ```python
   >>> import numpy as np
   >>> a = np.array(3432)
   >>> a
   array(3432)
   >>> a[0]
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
   IndexError: too many indices for array
   ```

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


With regards,
Apache Git Services