if return -1 from a hook that loop stopps

This commit is contained in:
William Falcon
2019-04-21 13:38:50 -04:00
parent 004f015ee0
commit e89da15f18
2 changed files with 3 additions and 7 deletions
-2
View File
@@ -19,5 +19,3 @@ class ModelHooks(torch.nn.Module):
def on_post_performance_check(self):
pass
def should_stop_epoch(self, data_batch):
return False