# IterableDataset

Source: https://www.tensorplay.cn/docs/generated/tensorplay.utils.data.IterableDataset.html

# IterableDataset

class tensorplay.utils.data.IterableDataset[[source]](../_modules/tensorplay/utils/data.html#IterableDataset)

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](tensorplay.utils.data.DataLoader.html#tensorplay.utils.data.DataLoader),
each item in the dataset will be yielded from the DataLoader iterator.
