Skip to content

Commit

Permalink
ad
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyxu committed Feb 2, 2024
1 parent aa46cda commit e75394c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/python/lance/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def iter_fragments(
fragments = dataset.get_fragments()
if self._randomize:
random.seed(self._seed)
fragments = random.shuffle(fragments)
random.shuffle(fragments)
for idx in range(self._rank, len(fragments), self._world_size):
yield fragments[idx]

Expand Down

0 comments on commit e75394c

Please sign in to comment.