-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Floating point exception in mxnet.ndarray.Correlation #18942
Comments
So here's the problem:
The code needs to guard against zero-size array for right operand of |
@szha can I work on this issue? Would need some advice on how to solve it |
@ekdnam yes. I think in this case the problem is that both stride1 and stride2 should not be zero. The existing mechanism for declaring operator parameter ranges is in the declaration of the parameter object. Currently, it only has default values: |
in issue: apache#18942, an error was occurring where strides became zero. to solve the issue, the lower bounds of stride1 and stride2 have been set to 1.
* set_lower_bound(1) so that stride is not zero in issue: #18942, an error was occurring where strides became zero. to solve the issue, the lower bounds of stride1 and stride2 have been set to 1. * small typo 'use_unifrom' changed to 'use_uniform' * add tests to check lower bound checking that stride1 and stride2 are be greater than zero * Update test_operator.py Co-authored-by: Sheng Zha <[email protected]>
* set_lower_bound(1) so that stride is not zero in issue: #18942, an error was occurring where strides became zero. to solve the issue, the lower bounds of stride1 and stride2 have been set to 1. * small typo 'use_unifrom' changed to 'use_uniform' * add tests to check lower bound checking that stride1 and stride2 are be greater than zero * Update test_operator.py * documentation error name is not a parameter. issue: #19001 * data is the parameter, not input solves issue: #19000 * fix docs threshold is not a parameter. issue: #18999 * fix docs context 'ctx' is not a parameter. issue: #18990 * fix indentation issue: #18988 Co-authored-by: Sheng Zha <[email protected]>
Description
(A clear and concise description of what the bug is.)
mxnet.ndarray.Correlation
has floating point exception when givenstride2=0
. Please see the provided code 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: