Skip to content

Commit 36f4bc9

Browse files
authored
Merge branch 'master' into feat/ModelCheckpointException
2 parents 97900b1 + 37f559e commit 36f4bc9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ ______________________________________________________________________
5757

5858
# Why PyTorch Lightning?
5959

60-
Training models in plain PyTorch is tedious and error-prone - you have to manually handle things like backprop, mixed precision, multi-GPU, and distributed training, often rewriting code for every new project. PyTorch Lightning organizes PyTorch code to automate those complexities so you can focus on your model and data, while keeping full control and scaling from CPU to multi-node without changing your core code.
60+
Training models in plain PyTorch is tedious and error-prone - you have to manually handle things like backprop, mixed precision, multi-GPU, and distributed training, often rewriting code for every new project. PyTorch Lightning organizes PyTorch code to automate those complexities so you can focus on your model and data, while keeping full control and scaling from CPU to multi-node without changing your core code. But if you want control of those things, you can still opt into more DIY.
6161

6262
Fun analogy: If PyTorch is Javascript, PyTorch Lightning is ReactJS or NextJS.
6363

src/lightning/pytorch/core/module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,10 @@ def log(
466466
)
467467

468468
# make sure user doesn't introduce logic for multi-dataloaders
469-
if "/dataloader_idx_" in name:
469+
if add_dataloader_idx and "/dataloader_idx_" in name:
470470
raise MisconfigurationException(
471471
f"You called `self.log` with the key `{name}`"
472-
" but it should not contain information about `dataloader_idx`"
472+
" but it should not contain information about `dataloader_idx` when `add_dataloader_idx=True`"
473473
)
474474

475475
value = apply_to_collection(value, (Tensor, numbers.Number), self.__to_tensor, name)

0 commit comments

Comments
 (0)