DNXie opened a new issue #19941:
URL: https://github.com/apache/incubator-mxnet/issues/19941


   ## Description
   `mxnet.ndarray.take` crashes(segfault and floating point exception) when `a` 
is empty
   
   ### Error Message
   Floating point exception and segmentation fault
   
   ## To Reproduce
   
   This input throws floating point exception, the 
[gist](https://colab.research.google.com/drive/1sucj581DPV11dIfUkJZ-qFdO5QfWoOYY?usp=sharing)
   ~~~python
   import mxnet
   mxnet.ndarray.take(indices = mxnet.nd.array((3, 8, 19, 2)), 
a=mxnet.nd.array(np.ones((0))), mode='wrap')
   ~~~
   
   
   Without passing `wrap`, it throws segfault
   ~~~python
   import mxnet
   mxnet.ndarray.take(indices = mxnet.nd.array((3, 8, 19, 2)), 
a=mxnet.nd.array(np.ones((0))))
   ~~~
   
   ## Environment
   
   OS: ubuntu 18.04
   Python: 3.7.6
   pip: 20.0.2
   numpy: 1.18.5
   mxnet: 1.6.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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@mxnet.apache.org
For additional commands, e-mail: issues-h...@mxnet.apache.org

Reply via email to