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

Adding Support for IterableDataset in "standardize_data_formats" #102

Open
wants to merge 13 commits into
base: nightly
Choose a base branch
from

Conversation

marcandrelarochelle
Copy link
Contributor

@marcandrelarochelle marcandrelarochelle commented Mar 26, 2025

Description

This PR adds support for IterableDataset in the function "standardize_data_formats", similar to the previous PR: #98

Changes

Instead of slicing the dataset using indexes, uses itertools.islice

Bug Details

Current code tries to slice the dataset with indexes, which is not possible for an IterableDataset, also tries to pass num_proc which is unsupported by the IterableDataset (as of now).

Solution

Use itertools.islice the dataset and avoid passing num_proc for IterableDataset

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.

1 participant