early epoch stopping
This commit is contained in:
parent
95aee7ff96
commit
2514f62913
|
@ -309,6 +309,7 @@ class Trainer(TrainerIO):
|
|||
if self.__is_function_implemented('on_batch_end'):
|
||||
self.model.on_batch_end()
|
||||
|
||||
# end epoch early
|
||||
if early_stop_epoch:
|
||||
break
|
||||
|
||||
|
@ -326,6 +327,7 @@ class Trainer(TrainerIO):
|
|||
if stop:
|
||||
return
|
||||
|
||||
|
||||
def __run_tng_batch(self, data_batch):
|
||||
if data_batch is None:
|
||||
return 0
|
||||
|
|
Loading…
Reference in New Issue