mxnet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-mxnet] reminisce commented on issue #17009: [Numpy] support boolean indexing
Date Fri, 27 Dec 2019 19:45:49 GMT
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

Mime
View raw message