Skip to content

Commit

Permalink
add link to ray docs
Browse files Browse the repository at this point in the history
  • Loading branch information
arnavgarg1 committed Sep 16, 2022
1 parent 49b4169 commit b928237
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ludwig/hyperopt/syncer.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ def _delete_command(self, uri: str) -> Tuple[Callable, Dict]:

def __reduce__(self):
"""We need this custom serialization because we can't pickle thread.lock objects that are used by the
use_credentials context manager."""
use_credentials context manager.
https://docs.ray.io/en/latest/ray-core/objects/serialization.html#customized-serialization
"""
deserializer = RemoteSyncer
serialized_data = (self.sync_period, self.backend)
return deserializer, serialized_data

0 comments on commit b928237

Please sign in to comment.