mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
if return -1 from a hook that loop stopps
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user