You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2021/01/26 21:32:59 UTC

[GitHub] [incubator-mxnet] DNXie opened a new issue #19793: floating point exception in mxnet.ndarray.op.sample_multinomial

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


   ## Description
   floating point exception in `mxnet.ndarray.op.sample_multinomial` when `data` has 0 in its shape.
   
   ### Error Message
   ~~~
   Floating point exception (core dumped)
   ~~~
   
   ## To Reproduce
   check the reproduce code: https://colab.research.google.com/drive/14ocIth3ZkDUj7LYxcNn79NcWaoXu74Pk?usp=sharing
   
   ~~~python
   import mxnet
   import numpy as np
   data=mxnet.nd.array(np.ones((1,1,1,0)))
   mxnet.ndarray.op.sample_multinomial(data=data)
   ~~~
   
   
   
   
   ## 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:
users@infra.apache.org



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


[GitHub] [incubator-mxnet] DNXie commented on issue #19793: floating point exception in sample_multinomial

Posted by GitBox <gi...@apache.org>.
DNXie commented on issue #19793:
URL: https://github.com/apache/incubator-mxnet/issues/19793#issuecomment-782146812


   `mxnet.ndarray.random.multinomial` has similar floating point exception.
   
   ~~~python
   import mxnet
   import numpy as np
   data=mxnet.nd.array(np.ones((1,1,1,0)))
   mxnet.ndarray.random.multinomial(data=data)
   ~~~
   See [gist](https://colab.research.google.com/drive/1NqPECgUCmowBG1NlcdsJGVMEV8MTcRhp?usp=sharing)


----------------------------------------------------------------
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:
users@infra.apache.org



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