Skip to content

Commit

Permalink
fixes #909
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed Feb 25, 2020
1 parent 66f55d7 commit 05ad57d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytorch_lightning/trainer/evaluation_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ def evaluate(self, model, dataloaders, max_batches, test=False):

def run_evaluation(self, test=False):
# when testing make sure user defined a test step
if test and not (self.is_overriden('test_step') and self.is_overriden('test_end')):
m = '''You called `.test()` without defining model's `.test_step()` or `.test_end()`.
if test and not (self.is_overriden('test_step')):
m = '''You called `.test()` without defining model's `.test_step()`.
Please define and try again'''
raise MisconfigurationException(m)

Expand Down

0 comments on commit 05ad57d

Please sign in to comment.