Skip to content

Commit 75db4dd

Browse files
authored
Update engine.py
1 parent 13d95db commit 75db4dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: ignite/engine/engine.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ def _internal_run_as_gen(self) -> Generator[Any, None, State]:
10001000

10011001
if self.should_terminate_single_epoch:
10021002
# We skip raising _EngineTerminateSingleEpochException exception on Events.EPOCH_COMPLETED
1003-
# as epoch is already completed and nothing to terminate
1003+
# as epoch is already completed and nothing to terminate
10041004
self.should_terminate_single_epoch = False
10051005
yield from self._maybe_terminate_or_interrupt()
10061006

@@ -1197,7 +1197,7 @@ def _internal_run_legacy(self) -> State:
11971197

11981198
if self.should_terminate_single_epoch:
11991199
# We skip raising _EngineTerminateSingleEpochException exception on Events.EPOCH_COMPLETED
1200-
# as epoch is already completed and nothing to terminate
1200+
# as epoch is already completed and nothing to terminate
12011201
self.should_terminate_single_epoch = False
12021202
self._maybe_terminate_legacy()
12031203

0 commit comments

Comments
 (0)