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


   ## Description
   `mxnet.ndarray.signsgd_update`  and `mxnet.ndarray.op.signsgd_update` 
crashes(segfault) when `grad` is an empty tensor
   
   ### Error Message
   ~~~python
   Fatal Error: Segmentation fault
   Stack trace:
   Segmentation fault (core dumped)
   ~~~
   
   ## To Reproduce
   Check out the 
[gist](https://colab.research.google.com/drive/1LSN2Jha5NuM46C_N0iNnqaa7aUyNRUph?usp=sharing)
   ~~~python
   
   import numpy as np
   import mxnet
   weight=mxnet.nd.ones((1,))
   grad=mxnet.nd.array(np.ones((0,)))
   mxnet.ndarray.signsgd_update(weight=weight, grad=grad, lr=0.9)
   ~~~
   
   
   
   ## Environment
   
   OS: ubuntu 18.04
   Python: 3.7.6
   pip: 20.0.2
   numpy: 1.18.5
   mxnet: 1.7.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