Skip to content

Conversation

@changjonathanc
Copy link
Contributor

What does this PR do?

Fix #8087
Bring back support for IterableDataset with __len__ in Trainer. Changed in #7858

@sgugger

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though I'm not really sure I understand why you're wrapping a Dataset in an IterableDataset as it seems there would be simpler ways to iterate over your data, this change LGTM!

@sgugger sgugger merged commit 286dc19 into huggingface:master Oct 27, 2020
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.

#7858 breaks IterableDataset with __len__ in Trainer

3 participants