Shortcuts

Typedef torch::data::datasets::StreamDataset

Typedef Documentation

template<typename Self, typename Batch = std::vector<Example<>>>
using torch::data::datasets::StreamDataset = BatchDataset<Self, Batch, size_t>

A StreamDataset represents a dataset that is a potentially infinite stream.

It takes as batch index only a number, which is the batch size, and yields that many elements from the stream.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources