-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[BUGFIX] Fix flaky test #19197 by avoiding case that 0.45 mapped to 0.5 #19201
Conversation
Hey @kpuatamazon , Thanks for submitting the PR
CI supported jobs: [clang, website, unix-cpu, sanity, unix-gpu, windows-cpu, edge, centos-gpu, miscellaneous, windows-gpu, centos-cpu] Note: |
@mxnet-bot run ci [unix-gpu] Not my errors, appears to be GPU test failures https://jenkins.mxnet-ci.amazon-ml.com/blue/rest/organizations/jenkins/pipelines/mxnet-validation/pipelines/unix-gpu/branches/PR-19201/runs/1/nodes/354/steps/721/log/?start=0
|
Jenkins CI successfully triggered : [unix-gpu] |
@mxnet-bot run ci [unix-cpu] And unix-cpu is failing in the R test due to #19169:
|
Undefined action detected. |
Jenkins CI successfully triggered : [unix-cpu] |
1 similar comment
Jenkins CI successfully triggered : [unix-cpu] |
@mxnet-bot run ci [unix-cpu] Fun fact: the bot is not idempotent and editing a message will cause it to try again, interrupt the existing run, and report failure because it interrupted the previous run. |
Jenkins CI successfully triggered : [unix-cpu] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix!
@kpuatamazon does this need to be committed to master branch too? |
|
Description
This is testing a quantizer by comparing with other MXNet operators like round. There's one ambiguous case, which is what to do with 0.5, 1.5, -0.5, etc. Implementations can disagree (plus floating point rounding might push things to the side a bit) and that's ok. So to make things consistent, I pushed random values between (0.45 and 0.55) away from 0.5 by adding. . . 0.05. That was dumb because it just mapped values in (0.45, 0.55) to (0.5, 0.6) which still had the same rounding issue and triggered a flaky test #19197. This PR remaps (0.45, 0.55) to (0.65, 0.75) ensuring no value is near 0.5 when it is rounded. Then quantized values can be compared exactly.
Checklist
Essentials
Changes
Comments
There will be another PR for master.