DNXie opened a new issue #19683:
URL: https://github.com/apache/incubator-mxnet/issues/19683
## Description
Floating point exception in `mxnet.contrib.ndarray.arange_like` and
`mxnet.ndarray.contrib.arange_like` when `repeat` is 0.
### Error Message
In mxnet 1.6:
~~~python
Floating point exception (core dumped)
~~~
In mxnet nightly version (2.0.0):
~~~python
terminate called after throwing an instance of 'dmlc::Error'
what(): [22:27:50] ../src/initialize.cc:379: FloatingPointError: Floating
point exception
Aborted (core dumped)
~~~
## To Reproduce
~~~python
import mxnet as mx
mx.contrib.ndarray.arange_like(data=mx.nd.ones(1), repeat=0)
mx.ndarray.contrib.arange_like(data=mx.nd.ones(1), repeat=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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]