Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Jul 31, 2024
1 parent 959de48 commit a6603a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torchrl/data/replay_buffers/checkpointers.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def loads(self, storage, path):

if (
isinstance(storage, LazyMemmapStorage)
and storage.scratch_dir
and Path(storage.scratch_dir).absolute() == Path(path).absolute()
):
storage._storage = TensorDict.load_memmap(path)
Expand Down

0 comments on commit a6603a6

Please sign in to comment.