Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Oct 19, 2023
1 parent 7d174a4 commit de0c028
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tensordict/tensordict.py
Original file line number Diff line number Diff line change
Expand Up @@ -4741,8 +4741,6 @@ def memmap_(
def load_memmap(cls, prefix: str) -> T:
prefix = Path(prefix)
metadata = torch.load(prefix / "meta.pt")
# TODO: remove this
assert metadata["device"] == torch.device("cpu"), metadata
out = cls({}, batch_size=metadata["batch_size"], device=metadata["device"])

for path in prefix.glob("**/*meta.pt"):
Expand Down

0 comments on commit de0c028

Please sign in to comment.