Skip to content

Commit 398cc10

Browse files
authored
Merge branch 'master' into feat/to_tensorrt
2 parents f16deed + 37f559e commit 398cc10

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

.github/markdown-links-config.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,9 @@
2222
"Accept-Encoding": "zstd, br, gzip, deflate"
2323
}
2424
}
25-
]
25+
],
26+
"timeout": "20s",
27+
"retryOn429": true,
28+
"retryCount": 5,
29+
"fallbackRetryDelay": "20s"
2630
}

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ ______________________________________________________________________
5555

5656
 
5757

58+
# Why PyTorch Lightning?
59+
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.
61+
62+
Fun analogy: If PyTorch is Javascript, PyTorch Lightning is ReactJS or NextJS.
63+
5864
# Lightning has 2 core packages
5965

6066
[PyTorch Lightning: Train and deploy PyTorch at scale](#why-pytorch-lightning).

_notebooks

src/lightning/pytorch/core/module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,10 +469,10 @@ def log(
469469
)
470470

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

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

0 commit comments

Comments
 (0)