Ask a question to get started
Enter to send•Shift+Enter new line
Utility batching function.
batch_iterate( size: int | None, iterable: Iterable[T], ) -> Iterator[list[T]]
size
int | None
The size of the batch.
If None, returns a single batch.
None
iterable
Iterable[T]
The iterable to batch.