Skip to content

Commit 870fc35

Browse files
committed
only synchronize "main" stream
1 parent 27615f6 commit 870fc35

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

bigwig_loader/streamed_dataset.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,7 @@ def _generate_batches(self) -> Generator[Batch, None, None]:
251251

252252
for select in self._slices_objects(n_samples, slice_size):
253253
with self.main_stream as stream:
254-
# stream.synchronize()
255-
cp.cuda.Device().synchronize()
254+
stream.synchronize()
256255

257256
values = intervals_to_values(
258257
array_start=start_data,

0 commit comments

Comments
 (0)