-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Floating point exception in mxnet.ndarray.op.random_pdf_dirichlet #18936
Comments
@leeyeetonn thanks a lot for identifying and reporting these issues (#18927, #18933, #18934, and this). it's very helpful. I think a general problem for these issues is that FPE exits the program without a stacktrace. I will work on improving the signal handler to treat it as a regular runtime error instead. |
@szha Thanks for your feedback! I agree. They should not have FPEs but rather runtime exceptions in python. I believe each one of them requires some additional input validity checks. I have a few more cases of FPEs caused by similar kind of input. If you don't mind, I'd like to report them as individual issues which is helpful to keep track of things. |
@leeyeetonn |
Yes, FPE should no longer abort the program now. The bug still needs to be fixed |
So here's the problem:
The code needs to guard against zero-size array for right operand of |
@xidulu 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) |
Description
(A clear and concise description of what the bug is.)
mxnet.ndarray.op.random_pdf_dirichlet
has floating point exception when givensample
's shape has 0. Please see the provided code as 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: