Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Mar 4, 2024
1 parent 73ce0d7 commit 4860c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrl/data/datasets/atari_dqn.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ def preprocess(
first_item = self[0]
mmap = fn(first_item)
mmap = mmap.expand(len(self), *first_item.shape)
mmap["_indices"] = torch.arange(mmap.shape[0])
mmap["_indices"] = torch.arange(mmap.shape[0]).reshape(mmap.shape)
mmap.memmap_like(tmpdir, num_threads=32)

def func(mmap):
Expand Down

0 comments on commit 4860c01

Please sign in to comment.