Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Jan 17, 2024
1 parent e5b07b8 commit 4502785
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_tensordict.py
Original file line number Diff line number Diff line change
Expand Up @@ -2620,6 +2620,11 @@ def test_lock_write(self, td_name, device):
del td[key]
td.lock_()
else:
if td_name in (
"sub_td", "sub_td2", "permute_td", "squeezed_td",
"unsqueezed_td"):
# we can't call select inplace on these guys so we exit here
return
with td.unlock_() if td.is_locked else contextlib.nullcontext():
td = td.select(inplace=True)
for key, item in td_clone.items(True):
Expand Down

0 comments on commit 4502785

Please sign in to comment.