-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add batching to
IterableDataset
(#7054)
* feat: add `.batch() to `IterableDataset` and introduce new `BatchedExamplesIterable` * style: formatting... * refactor: implement feedback to use .map() * test: add tests for new `batch()` method * style: formatting... * fix: remove type hints in `batch_fn()` to fix failing CI * docs: add section "Batching data in IterableDataset" to "Differences between Dataset and IterableDataset" * refactor: apply feedback * docs nit --------- Co-authored-by: Quentin Lhoest <lhoest.q@gmail.com>
- Loading branch information
1 parent
3a12370
commit 0689b4e
Showing
5 changed files
with
110 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters