Skip to content

Commit

Permalink
Hub Dataset compute() added to TileDB benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
DebadityaPal committed Jan 28, 2021
1 parent 3deb9d0 commit b986d17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/benchmark_tiledb_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def time_hub(dataset, batch_size=1):
t0 = time()
for batch in range(ds.shape[0] // batch_size):
x, y = (
ds[batch * batch_size : (batch + 1) * batch_size]["image"],
ds[batch * batch_size : (batch + 1) * batch_size]["label"],
ds[batch * batch_size : (batch + 1) * batch_size]["image"].compute(),
ds[batch * batch_size : (batch + 1) * batch_size]["label"].compute(),
)
counter += 1
t1 = time()
Expand Down

0 comments on commit b986d17

Please sign in to comment.