Skip to content

Commit

Permalink
Update iterable_dataset.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoestq authored Dec 3, 2024
1 parent 38d648e commit 2300df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datasets/iterable_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2665,7 +2665,7 @@ def shard(
num_shards: int,
index: int,
contiguous: bool = True,
) -> "Dataset":
) -> "IterableDataset":
"""Return the `index`-nth shard from dataset split into `num_shards` pieces.
This shards deterministically. `dataset.shard(n, i)` splits the dataset into contiguous chunks,
Expand Down

0 comments on commit 2300df0

Please sign in to comment.