mirror of
https://github.com/wassname/ray.git
synced 2026-07-14 11:17:54 +08:00
[tune] Cross-Node Recovery (#3725)
Augments trial restore to also check if the runner is at the same location. If not, the checkpoint files are pushed onto the new location.
This commit is contained in:
@@ -104,6 +104,10 @@ class Trainable(object):
|
||||
|
||||
return ""
|
||||
|
||||
def current_ip(self):
|
||||
self._local_ip = ray.services.get_node_ip_address()
|
||||
return self._local_ip
|
||||
|
||||
def train(self):
|
||||
"""Runs one logical iteration of training.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user