mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
added on_hpc_load and on_hpc_save hooks
This commit is contained in:
@@ -21,6 +21,9 @@ class ModelIO(object):
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
# -------------------------
|
||||
# OPTIONAL HOOKS
|
||||
# -------------------------
|
||||
def on_hpc_save(self):
|
||||
"""
|
||||
Hook to do whatever you need right before Slurm manager saves the model
|
||||
|
||||
Reference in New Issue
Block a user