anirudh2290 commented on issue #9772: ndarray indexing issues
URL: 
https://github.com/apache/incubator-mxnet/issues/9772#issuecomment-365348247
 
 
   Issue is that isinstance is not working as expected by the code and returns 
false in python3. Workaround is to force the type of i to be int instead of 
numpy.int64.  I think this should also be fixed on the mxnet side. The problem 
is that we are calling isinstance with int and in the check 
isinstance(np.int64, int) is not reliable 
(https://github.com/numpy/numpy/issues/2951). Please see: 
https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/ndarray/ndarray.py#L2039.
 The suggested fix is to check with np.integer for numpy data types. WDYT 
@reminisce ?

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