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 number of total steps shown in progress bar during sanity validation check when number of validation dataloaders >= 2 #597

Merged
merged 3 commits into from
Dec 7, 2019

Conversation

YehCF
Copy link
Contributor

@YehCF YehCF commented Dec 6, 2019

Calculate the adequate number of steps to run during sanity_check.
This fixes the bug when there are two or more validation dataloaders.

  • Before: total=self.num_sanity_val_steps
  • After: total=self.num_sanity_val_steps*len(self.get_val_dataloaders())

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos, doc improvements)
  • Did you read the contributor guideline?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

What does this PR do?

Fixes #586 .

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

kevincfyeh added 3 commits December 5, 2019 15:14
Calculate the adequate number of steps to run during sanity_check.
This fixes the bug when there are two or more validation dataloaders.

- Before: total=self.num_sanity_val_steps
- After: total=self.num_sanity_val_steps*len(self.get_val_dataloaders())
Put total=... in the next line
run flake8
Copy link
Contributor

@neggert neggert left a comment

Choose a reason for hiding this comment

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

LGTM

@williamFalcon williamFalcon merged commit cc65f39 into Lightning-AI:master Dec 7, 2019
@YehCF YehCF deleted the update branch December 8, 2019 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants