mirror of
https://github.com/wassname/ray.git
synced 2026-07-31 12:41:01 +08:00
[tune] Function API checkpointing (#8471)
Co-authored-by: krfricke <krfricke@users.noreply.github.com>
This commit is contained in:
@@ -57,7 +57,7 @@ class DurableTrainable(Trainable):
|
||||
Checkpoint path or prefix that may be passed to restore().
|
||||
"""
|
||||
if checkpoint_dir:
|
||||
if checkpoint_dir.starts_with(os.path.abspath(self.logdir)):
|
||||
if checkpoint_dir.startswith(os.path.abspath(self.logdir)):
|
||||
raise ValueError("`checkpoint_dir` must be `self.logdir`, or "
|
||||
"a sub-directory.")
|
||||
checkpoint_path = super(DurableTrainable, self).save(checkpoint_dir)
|
||||
|
||||
Reference in New Issue
Block a user