Skip to content

Commit

Permalink
(fix): compute in iteratio
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan-gold committed Sep 27, 2024
1 parent ae0e5ff commit 32fc41b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion figure_2_iteration_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _iterate(dataset, h5labels, random: bool = False, need_sort: bool = False):
for batch_idx in index_iter(dataset.shape[0], BATCH_SIZE, shuffle=random):
if random and need_sort:
batch_idx.sort()
batch_X = dataset[batch_idx, :]
batch_X = dataset[batch_idx, :].compute()
batch_labels = h5labels[batch_idx]


Expand Down

0 comments on commit 32fc41b

Please sign in to comment.