kparzysz-quic opened a new pull request, #14476:
URL: https://github.com/apache/tvm/pull/14476

   Some versions of numpy disallow the following:
   
   ```
   >>> import numpy as np
   >>> a = np.zeros(10)
   >>> b = [slice(None)]
   >>> a[b]
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
   IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis 
(`None`) and integer or boolean arrays are valid indices
   ```
   When b is a tuple, it works fine:
   ```
   >>> a[tuple(b)]
   array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to