Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Feb 21, 2024
1 parent fb9e562 commit b349086
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_rb.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,11 +737,11 @@ class TC:
if data_type in ("tensor", "pytree"):
tree_map(
torch.testing.assert_close,
tree_flatten(storage._storage)[0],
tree_flatten(storage_recover._storage)[0],
tree_flatten(storage[:])[0],
tree_flatten(storage_recover[:])[0],
)
else:
assert_allclose_td(storage._storage, storage_recover._storage)
assert_allclose_td(storage[:], storage_recover[:])
if data == "tc":
assert storage._storage.text == storage_recover._storage.text

Expand Down

0 comments on commit b349086

Please sign in to comment.