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


   ## Description
   `mxnet.ndarray.op.hard_sigmoid` crashes(aborts) when `data` is an empty 
tensor
   
   ### Error Message
   ~~~python
   
   Segmentation fault: 11
   
   Stack trace:
     [bt] (0) 
/root/miniconda3/lib/python3.7/site-packages/mxnet/libmxnet.so(+0x3c27360) 
[0x7f4c5557a360]
   terminate called after throwing an instance of 'std::system_error'
     what():  Resource deadlock avoided
   Aborted (core dumped)
   ~~~
   
   
   ## To Reproduce
   ~~~python
   import numpy as np
   import mxnet
   mxnet.ndarray.op.hard_sigmoid(data=mxnet.nd.array(np.ones((1,0))), 
out=mxnet.nd.ones((1,1)))
   ~~~
   
   
   
   ## 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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to