mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 22:08:16 +08:00
[tune] restore trials when sync_on_checkpoint is False (#11355)
Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
This commit is contained in:
@@ -722,7 +722,8 @@ class RayTrialExecutor(TrialExecutor):
|
||||
trial.runner.restore_from_object.remote(value)
|
||||
else:
|
||||
logger.debug("Trial %s: Attempting restore from %s", trial, value)
|
||||
if issubclass(trial.get_trainable_cls(), DurableTrainable):
|
||||
if issubclass(trial.get_trainable_cls(),
|
||||
DurableTrainable) or not trial.sync_on_checkpoint:
|
||||
with self._change_working_directory(trial):
|
||||
remote = trial.runner.restore.remote(value)
|
||||
elif trial.sync_on_checkpoint:
|
||||
|
||||
Reference in New Issue
Block a user