Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement iterable datasets support. #1095

Merged
merged 2 commits into from Aug 29, 2023
Merged

Implement iterable datasets support. #1095

merged 2 commits into from Aug 29, 2023

Conversation

dfalbel
Copy link
Member

@dfalbel dfalbel commented Aug 29, 2023

This allows using datasets that don't have a known length upfront, eg in reinforcement learning scenarios or, in datasets where it's not possible to pre-process the entire data to know the length upfront.

Use the iterable_dataset function to create a Iterable dataset and implement at least the .iter() method, returning a function that returns a new element every time it's called. It should return coro::exhausted() once it has no data to return.

@dfalbel dfalbel merged commit ea06e7e into main Aug 29, 2023
7 of 9 checks passed
@dfalbel dfalbel deleted the iterable-data branch August 29, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant