Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ninginthecloud committed Aug 27, 2021
1 parent 29474af commit c2e046c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions pytorch_lightning/trainer/configuration_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ def __verify_train_loop_configuration(self, model: "pl.LightningModule") -> None
if has_on_train_dataloader:
rank_zero_deprecation(
"Method `on_train_dataloader` in DataHooks is deprecated and will be removed in v1.7.0."
" Please use `train_dataloader()` directly. "
" Please use `train_dataloader()` directly."
)

has_on_val_dataloader = is_overridden("on_val_dataloader", model)
if has_on_val_dataloader:
rank_zero_deprecation(
"Method `on_val_dataloader` in DataHooks is deprecated and will be removed in v1.7.0."
" Please use `val_dataloader()` directly. "
" Please use `val_dataloader()` directly."
)

trainer = self.trainer
Expand Down Expand Up @@ -130,14 +130,14 @@ def __verify_eval_loop_configuration(self, model: "pl.LightningModule", stage: s
if has_on_val_dataloader:
rank_zero_deprecation(
"Method `on_val_dataloader` in DataHooks is deprecated and will be removed in v1.7.0."
" Please use `val_dataloader()` directly. "
" Please use `val_dataloader()` directly."
)

has_on_test_dataloader = is_overridden("on_test_dataloader", model)
if has_on_test_dataloader:
rank_zero_deprecation(
"Method `on_test_dataloader` in DataHooks is deprecated and will be removed in v1.7.0."
" Please use `test_dataloader()` directly. "
" Please use `test_dataloader()` directly."
)

def __verify_predict_loop_configuration(self, model: "pl.LightningModule") -> None:
Expand All @@ -152,7 +152,7 @@ def __verify_predict_loop_configuration(self, model: "pl.LightningModule") -> No
if has_on_predict_dataloader:
rank_zero_deprecation(
"Method `on_predict_dataloader` in DataHooks is deprecated and will be removed in v1.7.0."
" Please use `predict_dataloader()` directly. "
" Please use `predict_dataloader()` directly."
)

def __verify_dp_batch_transfer_support(self, model: "pl.LightningModule") -> None:
Expand Down
2 changes: 1 addition & 1 deletion tests/trainer/logging_/test_logger_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def test_fx_validator_integration(tmpdir):
not_supported.update({k: "ResultCollection` is not registered yet" for k in not_supported})
not_supported.update(
{
"on_test_dataloader": "You can't",
"on_predict_dataloader": "ResultCollection` is not registered yet",
"predict_dataloader": "ResultCollection` is not registered yet",
"on_predict_model_eval": "ResultCollection` is not registered yet",
"on_predict_start": "ResultCollection` is not registered yet",
Expand Down

0 comments on commit c2e046c

Please sign in to comment.