Skip to content

Commit a384efc

Browse files
committed
Merge branch 'jhunt/fix-async-reset' of https://github.com/jjh42/pytorch-lightning into jhunt/fix-async-reset
2 parents 9a63bf3 + 941cdeb commit a384efc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lightning/pytorch/plugins/io/async_plugin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ def __init__(self, checkpoint_io: Optional["CheckpointIO"] = None) -> None:
4444
def _ensure_setup(self) -> None:
4545
"""Ensures that the executor is setup.
4646
47-
We can't do setup in __init__ because if train or validate is called more than once,
48-
the teardown method deletes the executor.
47+
We can't do setup in __init__ because if train or validate is called more than once, the teardown method deletes
48+
the executor.
49+
4950
"""
5051
if self._executor is None:
5152
self._executor = ThreadPoolExecutor(max_workers=1)

0 commit comments

Comments
 (0)