Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] Deprecate direct usage of memmap tensors #1699

Merged
merged 12 commits into from
Nov 15, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
lint
vmoens committed Nov 15, 2023
commit 65952122abe0f38bf65e5b525cdc5e0559c6bdff
8 changes: 2 additions & 6 deletions test/test_libs.py
Original file line number Diff line number Diff line change
@@ -1896,12 +1896,8 @@ def test_direct_download(self, task):
keys = keys.intersection(data_d4rl._storage._storage.keys(True, True))
assert len(keys)
assert_allclose_td(
data_direct._storage._storage.select(*keys).apply(
lambda t: t.float()
),
data_d4rl._storage._storage.select(*keys).apply(
lambda t: t.float()
),
data_direct._storage._storage.select(*keys).apply(lambda t: t.float()),
data_d4rl._storage._storage.select(*keys).apply(lambda t: t.float()),
)

@pytest.mark.parametrize(