Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Dec 12, 2024
1 parent 97cd086 commit dd8d6c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tensordict/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1548,6 +1548,11 @@ def assert_close(

from tensordict._lazy import LazyStackedTensorDict

if is_tensorclass(actual):
actual = actual._tensordict
if is_tensorclass(expected):
expected = expected._tensordict

if isinstance(actual, LazyStackedTensorDict) and isinstance(
expected, LazyStackedTensorDict
):
Expand Down

0 comments on commit dd8d6c7

Please sign in to comment.