DNXie opened a new issue #20180: URL: https://github.com/apache/incubator-mxnet/issues/20180
## Description `mxnet.ndarray.contrib.box_encode` crashes(segfault) when `refs` is of length 0 ### Error Message ~~~python Fatal Error: Segmentation fault Stack trace: Segmentation fault (core dumped) ~~~ ## To Reproduce The reproducing code can also be find in the [gist](https://colab.research.google.com/drive/1igrG40TSPVYvXn8Im8gOAzSar9ak-13P?usp=sharing) ~~~python import mxnet import numpy as np samples=mxnet.nd.ones((1,1)) matches=mxnet.nd.ones((1,1)) anchors=mxnet.nd.ones((1,1,4)) refs=mxnet.nd.array(np.ones((1,0,4))) means=mxnet.nd.ones((4,)) stds=mxnet.nd.ones((4,)) mxnet.ndarray.contrib.box_encode(samples=samples, matches=matches, anchors=anchors, refs=refs, means=means, stds=stds) ~~~ ## 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]
