Typedef torch::data::datasets::StreamDataset#
Defined in File base.h
Typedef Documentation#
-
template<typename Self, typename Batch = std::vector<Example<>>>
using torch::data::datasets::StreamDataset = BatchDataset<Self, Batch, size_t># A
StreamDatasetrepresents 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.