From 75db4ddeaa8718439fa9101f89c6d4d9a263049a Mon Sep 17 00:00:00 2001 From: vfdev Date: Mon, 9 Dec 2024 14:01:16 +0100 Subject: [PATCH] Update engine.py --- ignite/engine/engine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()