mirror of
https://github.com/gryf/coach.git
synced 2026-04-26 19:01:28 +02:00
Re-enable NFS data store. (#101)
This commit is contained in:
committed by
GitHub
parent
a0f25034c3
commit
dea1826658
@@ -68,6 +68,8 @@ def get_latest_checkpoint(checkpoint_dir):
|
||||
rel_path = os.path.relpath(ckpt.model_checkpoint_path, checkpoint_dir)
|
||||
return int(rel_path.split('_Step')[0])
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
def should_stop(checkpoint_dir):
|
||||
return os.path.exists(os.path.join(checkpoint_dir, SyncFiles.FINISHED.value))
|
||||
|
||||
Reference in New Issue
Block a user