3 #include <torch/data/datasets/base.h> 4 #include <torch/data/example.h> 26 typename Batch = std::vector<Example<>>,
27 typename BatchRequest =
size_t>
29 :
public BatchDataset<Self, optional<Batch>, BatchRequest> {
32 virtual void reset() = 0;
A dataset that can yield data only in batches.
A stateful dataset is a dataset that maintains some internal state, which will be reset() at the begi...
virtual void reset()=0
Resets internal state of the dataset.