Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in trainer test #651

Merged
merged 16 commits into from
Mar 5, 2022
Merged

Fix bug in trainer test #651

merged 16 commits into from
Mar 5, 2022

Conversation

hanlint
Copy link
Contributor

@hanlint hanlint commented Mar 3, 2022

Fixed a bug using mutable fixtures with how the trainer test generates the reference model. Without this fix, the reference model and any test model actually point to the same object, meaning that all tests would succeed. I also added a few safeguards (negative control test, and asserts in the comparision) to prevent future regressions.

@hanlint hanlint requested a review from jbloxham March 3, 2022 00:22
@hanlint hanlint requested a review from ravi-mosaicml March 3, 2022 17:28
Copy link
Contributor

@ravi-mosaicml ravi-mosaicml left a comment

Choose a reason for hiding this comment

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

LGTM

@hanlint hanlint merged commit e62992e into dev Mar 5, 2022
@hanlint hanlint deleted the hanlin/trainer_test_fix branch March 5, 2022 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants