Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 4, 2022
1 parent 2bcd7f2 commit 78fb0b5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion examples/01_lite_launch/launcher_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from lightning_lite import LightningLite


if __name__ == "__main__":
lite = LightningLite()
print("launched", lite.global_rank)
Expand Down
1 change: 0 additions & 1 deletion examples/01_lite_launch/launcher_script_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from lightning_lite import LightningLite


if __name__ == "__main__":
lite = LightningLite(accelerator="cpu", devices=2, strategy="ddp")
lite.launch()
Expand Down
1 change: 1 addition & 0 deletions src/lightning_lite/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
from argparse import ArgumentParser

import torch.distributed.run as torchrun


Expand Down
3 changes: 2 additions & 1 deletion src/lightning_lite/lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,4 +475,5 @@ def _validate_setup_dataloaders(dataloaders: Sequence[DataLoader]) -> None:
raise TypeError("Only PyTorch DataLoader are currently supported in `setup_dataloaders`.")


def _do_nothing(*_): pass
def _do_nothing(*_):
pass

0 comments on commit 78fb0b5

Please sign in to comment.