kiendang commented on issue #14402: Scala arange Flaky test URL: https://github.com/apache/incubator-mxnet/issues/14402#issuecomment-472409320 Found the issue. The reason is if the two compared arrays are both like [0f] and [0f] then `diff` and `norm` will be near 0 resulting in division by zero. https://github.com/apache/incubator-mxnet/blob/6aa8c27a69cafc65eb97c4e077cb399462b617e2/scala-package/core/src/test/scala/org/apache/mxnet/CheckUtils.scala#L27-L32 Solution is if `diff` is near `0f`, i.e < `Float.MinPositiveValue` just return it instead of dividing by `norm`
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
