Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Oct 6, 2020
1 parent 14c709f commit f54191c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytorch_lightning/trainer/evaluation_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ def evaluation_step(self, test_mode, batch, batch_idx, dataloader_idx):

# allow only EvalResult when using structured results (from val_step)
if is_result_obj and not isinstance(output, EvalResult):
raise MisconfigurationException('only `EvalResults` or dicts are allowed from `validation_step`')
m = 'only `EvalResults` or dicts are allowed from `validation_step`'
raise MisconfigurationException(m)

return output

Expand Down

0 comments on commit f54191c

Please sign in to comment.