Skip to content

Commit

Permalink
Update event table
Browse files Browse the repository at this point in the history
  • Loading branch information
bonassifabio committed Dec 3, 2024
1 parent 8ecf8f0 commit cf1cbcd
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions ignite/engine/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,38 +259,47 @@ class Events(EventEnum):
- TERMINATE_SINGLE_EPOCH : triggered when the run is about to end the current epoch,
after receiving a :meth:`~ignite.engine.engine.Engine.terminate_epoch()` or
:meth:`~ignite.engine.engine.Engine.terminate()` call.
- EPOCH_COMPLETED : triggered when the epoch is ended. Note that this is triggered even
when :meth:`~ignite.engine.engine.Engine.terminate_epoch()` is called.
- TERMINATE : triggered when the run is about to end completely,
after receiving :meth:`~ignite.engine.engine.Engine.terminate()` call.
- EPOCH_COMPLETED : triggered when the epoch is ended. Note that this is triggered even
when :meth:`~ignite.engine.engine.Engine.terminate_epoch()` is called.
- COMPLETED : triggered when engine's run is completed or terminated with
:meth:`~ignite.engine.engine.Engine.terminate()`, unless the flag
`skip_completed` is set to True.
The table below illustrates which events are triggered when various termination methods are called.
.. list-table::
:widths: 24 25 33 18
:widths: 38 33 28 20 20
:header-rows: 1
* - Method
- EVENT_COMPLETED
- TERMINATE_SINGLE_EPOCH
- EPOCH_COMPLETED
- TERMINATE
- COMPLETED
* - no termination
- ✔
- ✗
- ✔
- ✗
- ✔
* - :meth:`~ignite.engine.engine.Engine.terminate_epoch()`
- ✔
- ✔
- ✗
- ✔
* - :meth:`~ignite.engine.engine.Engine.terminate()`
- (✔)
-
- ✔
- ✔
- ✔
* - :meth:`~ignite.engine.engine.Engine.terminate(skip_completed=True)`
- ✗
- ✔
- ✔
- ✗
Since v0.3.0, Events become more flexible and allow to pass an event filter to the Engine:
Expand Down

0 comments on commit cf1cbcd

Please sign in to comment.