Skip to content

Commit

Permalink
Update engine.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vfdev-5 authored Dec 9, 2024
1 parent 13d95db commit 75db4dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ignite/engine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ def _internal_run_as_gen(self) -> Generator[Any, None, State]:

if self.should_terminate_single_epoch:
# We skip raising _EngineTerminateSingleEpochException exception on Events.EPOCH_COMPLETED
# as epoch is already completed and nothing to terminate
# as epoch is already completed and nothing to terminate
self.should_terminate_single_epoch = False
yield from self._maybe_terminate_or_interrupt()

Expand Down Expand Up @@ -1197,7 +1197,7 @@ def _internal_run_legacy(self) -> State:

if self.should_terminate_single_epoch:
# We skip raising _EngineTerminateSingleEpochException exception on Events.EPOCH_COMPLETED
# as epoch is already completed and nothing to terminate
# as epoch is already completed and nothing to terminate
self.should_terminate_single_epoch = False
self._maybe_terminate_legacy()

Expand Down

0 comments on commit 75db4dd

Please # to comment.