added on_hpc_load and on_hpc_save hooks

This commit is contained in:
William Falcon 2019-07-02 09:36:33 -04:00
parent f257c080c0
commit 62e091f48d
1 changed files with 3 additions and 0 deletions

View File

@ -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