Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Fix flaky test test_global_metric #15756

Merged
merged 5 commits into from
Aug 7, 2019
Merged

Conversation

ptrendx
Copy link
Member

@ptrendx ptrendx commented Aug 5, 2019

Description

Fixes #15592

The reason for assertion failure was that sometimes the random inputs would produce nan as a result, which would make the comparison m1.get() == m2.get() fail as nan != nan.

Checklist

Essentials

Please feel free to remove inapplicable items for your PR.

  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage:

@ptrendx ptrendx requested a review from DickJC123 August 5, 2019 19:49
Copy link
Member

@wkcn wkcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you : )

@ptrendx ptrendx merged commit aadef2d into apache:master Aug 7, 2019
@ptrendx
Copy link
Member Author

ptrendx commented Aug 7, 2019

@wkcn Thanks for keeping retriggering the CI - data.mxnet.io is super unreliable recently.

anirudhacharya pushed a commit to anirudhacharya/mxnet that referenced this pull request Aug 20, 2019
* Fix flaky test test_global_metric

* Retrigger CI

* retrigger CI

* retrigger CI

* retrigger CI
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky test test_metric.test_global_metric
3 participants