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 18, 2021
1 parent 39ca979 commit a5eb6d9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pytorch_lightning/trainer/configuration_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,13 @@ def __verify_eval_loop_configuration(model: "pl.LightningModule", stage: str) ->
has_step = is_overridden(step_name, model)

if has_loader and not has_step:
MisconfigurationException(f"You defined `{loader_name}` but have not defined `{step_name}` on your Lightning Module.")
MisconfigurationException(
f"You defined `{loader_name}` but have not defined `{step_name}` on your Lightning Module."
)
if has_step and not has_loader:
MisconfigurationException(f"You defined `{step_name}` but have not defined `{loader_name}` on your Lighning Module.")
MisconfigurationException(
f"You defined `{step_name}` but have not defined `{loader_name}` on your Lighning Module."
)

# ----------------------------------------------
# verify model does not have
Expand Down

0 comments on commit a5eb6d9

Please sign in to comment.