-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Changes to the test function #737
Conversation
ensures on train end is called even if early stopping is applied
@HarshSharma12 @Borda is this still active? |
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.
there is no need to close the progress bar?
@@ -65,6 +65,10 @@ def run_model_test(trainer_options, model, on_gpu=True): | |||
# correct result and ok accuracy | |||
assert result == 1, 'amp + ddp model failed to complete' | |||
|
|||
if early_stop: | |||
assert trainer.current_epoch >= trainer.min_epochs, 'amp + ddp model failed to complete' |
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.
rather make is raise an error
@HarshSharma12 may you rebase, pls? |
@Borda @williamFalcon @HarshSharma12 I had a look at rebasing this - the issue seems to have been fixed by #856 - see here I vote for closing this PR and the associated issue |
Ok, closing this... anyway very thanks @HarshSharma12 for your help and looking forward to your future help 🤖 |
Before submitting
What does this PR do?
Fixes #657. Overrides PR #726
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.
Did you have fun?
Make sure you had fun coding 🙃