Skip to content

Commit

Permalink
[tune] fix a typo in tune/execution/checkpoint_manager state serial…
Browse files Browse the repository at this point in the history
…ization. (ray-project#34368)

Signed-off-by: xwjiang2010 <[email protected]>
  • Loading branch information
xwjiang2010 authored and vitsai committed Apr 17, 2023
1 parent 11634d9 commit e73c0f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/ray/tune/execution/checkpoint_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def best_checkpoints(self):
def __getstate__(self):
state = self.__dict__.copy()
# Avoid serializing the memory checkpoint.
state["_newest_memory_checkpoint"] = _TrackedCheckpoint(
dir_or_data=None, storage_mode=CheckpointStorage.MEMORY
state["_latest_memory_checkpoint"] = _TrackedCheckpoint(
dir_or_data=None, checkpoint_id=-1, storage_mode=CheckpointStorage.MEMORY
)
# Avoid serializing lambda since it may capture cyclical dependencies.
state.pop("_delete_fn")
Expand Down

0 comments on commit e73c0f3

Please sign in to comment.