Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Oct 10, 2023
1 parent fb5c470 commit db918a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tensordict/memmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,8 +732,7 @@ def to(
return out

out = self.clone()
out.device = device
return self
return out.to(device)

def unbind(self, dim: int) -> tuple[torch.Tensor, ...]:
"""Unbinds a MemmapTensor along the desired dimension.
Expand Down

0 comments on commit db918a7

Please sign in to comment.