diff --git a/ignite/engine/engine.py b/ignite/engine/engine.py index c476aa6789d..f3f95c9a2e2 100644 --- a/ignite/engine/engine.py +++ b/ignite/engine/engine.py @@ -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() @@ -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()