Skip to content

Commit

Permalink
fix 2333 (#2360)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed Jun 25, 2020
1 parent f2710bb commit d221817
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytorch_lightning/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,8 @@ def test(

self.teardown('test')
if self.is_function_implemented('teardown'):
self.model.teardown('test')
model_ref = self.get_model()
model_ref.teardown('test')

def check_model_configuration(self, model: LightningModule):
r"""
Expand Down

0 comments on commit d221817

Please sign in to comment.