Skip to content

Commit 64b2b6a

Browse files
authored
Fix typos: "reparametrization" → "reparameterization" and "recommed" → "recommend" (#20892)
* Update pruning.py * Update connector.py
1 parent 43691d4 commit 64b2b6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lightning/fabric/connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def _check_strategy_and_fallback(self) -> None:
428428
if strategy_flag in _DDP_FORK_ALIASES and "fork" not in torch.multiprocessing.get_all_start_methods():
429429
raise ValueError(
430430
f"You selected `Fabric(strategy='{strategy_flag}')` but process forking is not supported on this"
431-
f" platform. We recommed `Fabric(strategy='ddp_spawn')` instead."
431+
f" platform. We recommend `Fabric(strategy='ddp_spawn')` instead."
432432
)
433433
if (
434434
strategy_flag in _FSDP_ALIASES or type(self._strategy_flag) is FSDPStrategy

src/lightning/pytorch/callbacks/pruning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def __init__(
129129
- ``bool``. Always apply it or not.
130130
- ``Callable[[epoch], bool]``. For dynamic values. Will be called every epoch.
131131
132-
make_pruning_permanent: Whether to remove all reparametrization pre-hooks and apply masks
132+
make_pruning_permanent: Whether to remove all reparameterization pre-hooks and apply masks
133133
when training ends or the model is saved.
134134
135135
use_lottery_ticket_hypothesis: See `The lottery ticket hypothesis <https://arxiv.org/abs/1803.03635>`_:

0 commit comments

Comments
 (0)