Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Nov 2, 2024
1 parent 29250b9 commit d2b86c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_tensordict.py
Original file line number Diff line number Diff line change
Expand Up @@ -6392,6 +6392,8 @@ def test_to_device_dtype_inplace(self, td_name, device):
)
elif td_name in ("permute_td", "unsqueezed_td", "squeezed_td", "td_h5"):
cm = pytest.raises(TypeError, match="Cannot use inplace=True with")
elif td_name in ("memmap_td",) and dest.type == "cpu":
cm = contextlib.nullcontext()
elif td.is_locked:
cm = pytest.raises(RuntimeError, match="Cannot modify locked TensorDict.")
else:
Expand Down

0 comments on commit d2b86c3

Please sign in to comment.