Skip to content

Commit 628fbf8

Browse files
author
Vincent Moens
committed
Update
[ghstack-poisoned]
1 parent 3bceec5 commit 628fbf8

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test/test_tensordict.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7948,13 +7948,8 @@ def test_consolidate_njt(self, device, use_file, tmpdir, num_threads):
79487948
assert hasattr(td_c, "_consolidated")
79497949
assert type(td_c) == type(td) # noqa
79507950
assert td_c["d"] == "a string!"
7951-
with (
7952-
pytest.raises(KeyError)
7953-
if td.device != td_c.device and device is not None
7954-
else contextlib.nullcontext()
7955-
):
7956-
# njt.to(device) is currently broken when it has lengths
7957-
assert_allclose_td(td.to(td_c.device), td_c)
7951+
7952+
assert_allclose_td(td.to(td_c.device), td_c)
79587953

79597954
tdload_make, tdload_data = _reduce_td(td)
79607955
tdload = tdload_make(*tdload_data)

0 commit comments

Comments
 (0)