You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/08/24 19:30:29 UTC
[GitHub] [incubator-mxnet] ChaiBapchya commented on issue #13455:
MaxIntegerValue is buggy
ChaiBapchya commented on issue #13455: MaxIntegerValue is buggy
URL: https://github.com/apache/incubator-mxnet/issues/13455#issuecomment-524575099
@larroy I found `MaxIntegerValue` used in `sample_multinomial_op.h` incorrectly.
For example
```
>>> mx.nd.random.multinomial(mx.nd.random.uniform(shape=65536),dtype="float16")
Check failed: ishape[ishape.ndim() - 1] <= mxnet::common::MaxIntegerValue<DType>() (65536 vs. 2048) : 'dtype' does not have a sufficient precision to represent the indices of the input array
```
```
>>> mx.nd.random.multinomial(mx.nd.random.uniform(shape=4294967296),dtype="float32")
Check failed: ishape[ishape.ndim() - 1] <= mxnet::common::MaxIntegerValue<DType>() (4294967296 vs. 16777216) : 'dtype' does not have a sufficient precision to represent the indices of the input array.
```
Maybe this can facilitate discussion.
----------------------------------------------------------------
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
With regards,
Apache Git Services