Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mthrok committed Nov 18, 2024
1 parent bff4819 commit 5a1d4e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/spdl/dataloader/_dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,15 @@ def __init__(
self,
src: Iterable[Source] | AsyncIterable[Source],
*,
# Pre-processing
preprocessor: Callables[[Source], T] | None = None,
# Aggregation
batch_size: int | None = None,
drop_last: bool = False,
aggregator: Functions[[list[T]], Output] | None = None,
# Buffering
buffer_size: int = 3,
# Execution config
num_threads: int = 8,
timeout: float | None = None,
output_order: str = "completion",
Expand Down

0 comments on commit 5a1d4e7

Please sign in to comment.