sxjscience edited a comment on issue #19073:
URL: 
https://github.com/apache/incubator-mxnet/issues/19073#issuecomment-723242017


   @bricksdont Would you be willing to help fix it? To reproduce the wrong 
behavior, let's consider
   ```python
   import mxnet as mx
   dist = mx.nd.array([0.9])
   for _ in range(100):
      out = mx.random.multinomial(dist).asscalar()
      if out == 1:
          print('Error!!!!')
   ```
   
   Output:
   ```
   Error!!!!
   Error!!!!
   Error!!!!
   Error!!!!
   Error!!!!
   Error!!!!
   Error!!!!
   Error!!!!
   Error!!!!
   Error!!!!
   Error!!!!
   Error!!!!
   ```
   
   We may try to use `std::upper_bound` and `thrust::upper_bound`.


----------------------------------------------------------------
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