Skip to content

Commit 941cdeb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cc7ca2f commit 941cdeb

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)