Re: Catch divide-by-zero floating number exception in backend

2018-11-12 Thread Pedro Larroy
Hi Could you be specific about the bugs? While we could use this for debug some particular errors as you describe I would think that in the general case you would want to rely on unit testing and conditional checks for very small numbers on the denominator if you can’t have a NaN. I think we sh

Catch divide-by-zero floating number exception in backend

2018-11-08 Thread Lin Yuan
Dear MXNet Community, I recently found the NaN errors sometimes could be due to some divide-by-zero float number bugs in engine backend. However, by default, such an exception will not be thrown. I added a signal trap to catch this error (https://github.com/apache/incubator-mxnet/pull/13190) and c