Skip to content

Commit

Permalink
Improved docs for terminate() and terminate_epoch()
Browse files Browse the repository at this point in the history
  • Loading branch information
bonassifabio committed Dec 4, 2024
1 parent adb2a01 commit a27632f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ignite/engine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ def terminate(self, skip_completed: bool = False) -> None:
- ...
- Terminating event
- :attr:`~ignite.engine.events.Events.TERMINATE`
- :attr:`~ignite.engine.events.Events.COMPLETED`
- :attr:`~ignite.engine.events.Events.COMPLETED` (unless `skip_completed=True`)
Args:
skip_completed: if True, the event :attr:`~ignite.engine.events.Events.COMPLETED` is not fired after
Expand Down Expand Up @@ -636,13 +636,16 @@ def terminate_epoch(self, skip_epoch_completed: bool = False) -> None:
- ...
- Event on which ``terminate_epoch`` method is called
- :attr:`~ignite.engine.events.Events.TERMINATE_SINGLE_EPOCH`
- :attr:`~ignite.engine.events.Events.EPOCH_COMPLETED`
- :attr:`~ignite.engine.events.Events.EPOCH_COMPLETED` (unless `skip_epoch_completed=True`)
- :attr:`~ignite.engine.events.Events.EPOCH_STARTED`
- ...
Args:
skip_epoch_completed: if True, the event :attr:`~ignite.engine.events.Events.EPOCH_COMPLETED`
is not fired after :attr:`~ignite.engine.events.Events.TERMINATE_SINGLE_EPOCH`. Default is False.
.. versionchanged:: 0.5.2
Added `skip_epoch_completed` flag
"""
self.logger.info(
"Terminate current epoch is signaled. "
Expand Down

0 comments on commit a27632f

Please sign in to comment.