3 #include <torch/csrc/WindowsTorchApiMacro.h> 4 #include <torch/data/samplers/base.h> 5 #include <torch/data/samplers/custom_batch_request.h> 6 #include <torch/types.h> 25 size_t size()
const noexcept
override;
26 operator size_t()
const noexcept;
57 size_t examples_retrieved_so_far_ = 0;
A Sampler is an object that yields an index with which to access a dataset.
A wrapper around a batch size value, which implements the CustomBatchRequest interface.
A sampler for (potentially infinite) streams of data.
A base class for custom index types.