TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

IterableDataset

class tensorplay.utils.data.IterableDataset[source]

An iterable Dataset.

All datasets that represent an iterable of data samples should subclass it. Such form of datasets is particularly useful when data come from a stream.

All subclasses should overwrite __iter__(), which would return an iterator of samples in this dataset.

When a subclass is used with DataLoader, each item in the dataset will be yielded from the DataLoader iterator.

On this page

Ask DeepWiki