Skip to content

Commit

Permalink
Update iterable_dataset.py (#7304)
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoestq authored Dec 3, 2024
1 parent 38d648e commit c9d3450
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 c9d3450

Please sign in to comment.