-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Floating point exception in mxnet.ndarray.op.random_pdf_poisson #18937
Comments
Here's the problem:
The code needs to guard against zero-size array for right operand of |
@xidulu same question as #18936 (comment), since we are deprecating ndarray in favor of np/npx, do we need to register an alias of this op in np/npx? (or is it already registered) |
@szha
|
Btw, a possible solution for this bug could be adding a zero-size check (e.g. https://github.com/apache/incubator-mxnet/blob/master/src/operator/numpy/random/np_normal_op.h#L320) before the kernel launch: https://github.com/apache/incubator-mxnet/blob/master/src/operator/random/pdf_op.h#L514 |
fixed in the above PR |
Description
(A clear and concise description of what the bug is.)
mxnet.ndarray.op.random_pdf_poisson
has floating point exception when givenlam
is shape(0,)
. Please see the provided code snippet for example.Error Message
(Paste the complete error message. Please also include stack trace by setting environment variable
DMLC_LOG_STACK_TRACE_DEPTH=10
before running your script.)To Reproduce
(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)
Steps to reproduce
(Paste the commands you ran that produced the error.)
What have you tried to solve it?
Environment
We recommend using our script for collecting the diagnositc information. Run the following command and paste the outputs below:
Got 404 when trying to get the script.
Some environment information:
The text was updated successfully, but these errors were encountered: