-
-
Notifications
You must be signed in to change notification settings - Fork 624
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Give the option to terminate the engine without firing Events.COMPLET… (
#3309) * Give the option to terminate the engine without firing Events.COMPLETED. The default behaviour is not changed. Note that even though Events.COMPLETED is not fired, its timer is updated. * Update ignite/engine/engine.py Co-authored-by: vfdev <[email protected]> * Update ignite/engine/engine.py Co-authored-by: vfdev <[email protected]> * Update ignite/engine/engine.py Co-authored-by: vfdev <[email protected]> * Update ignite/engine/engine.py Co-authored-by: vfdev <[email protected]> * Update ignite/engine/events.py Co-authored-by: vfdev <[email protected]> * Argument `skip_event_completed` renamed to `skip_completed` * - Fixed docs broken links. - Do not update self.state.times[Events.COMPLETED.name] if terminated - Fixed unit test * Update ignite/engine/engine.py Co-authored-by: vfdev <[email protected]> * Refactoring and patching. - Engine time logging moved out of the if clause. In the log message "completed" has been replaced with "finished" to avoid confusion. - Same changes applied to the method `_internal_run_legacy()` * Restored .gitignore Sorry for accidentally including it into the previous commit! * Update ignite/engine/events.py * Fixed typo in test_engine.py * Parametrized test for engine.terminate(skip_completed) * Update event table * Fixed documentation --------- Co-authored-by: vfdev <[email protected]>
- Loading branch information
1 parent
4f46210
commit 6f8ad2a
Showing
4 changed files
with
76 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters