Skip to content
Discussion options

You must be logged in to vote

Hi
IterableDatasets don't have a lengh defined. They can either be infinite in size or raise StopIteration at an arbitrary point. Hence, there is no notion of epochs and we cannot anticipate when it finishes iterations.

If you really need to have epochs, I suggest you try to rewrite your dataset logic into a regular Dataset.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@awaelchli
Comment options

@rongcuid
Comment options

@awaelchli
Comment options

@rongcuid
Comment options

@rongcuid
Comment options

Answer selected by carmocca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment