From ffd6dc678c4d1dc0d93964b6de20160e00ae4aed Mon Sep 17 00:00:00 2001 From: William Falcon Date: Tue, 23 Apr 2019 08:27:27 -0400 Subject: [PATCH] early epoch stopping --- pytorch_lightning/models/trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorch_lightning/models/trainer.py b/pytorch_lightning/models/trainer.py index 1bac00a63b..8039d03870 100644 --- a/pytorch_lightning/models/trainer.py +++ b/pytorch_lightning/models/trainer.py @@ -326,7 +326,7 @@ class Trainer(TrainerIO): def __run_tng_batch(self, data_batch): if data_batch is None: - return + return 0 # hook if self.__is_function_implemented('on_batch_start'):