Template Class StatelessDataLoader¶
Defined in File stateless.h
Page Contents
Inheritance Relationships¶
Base Type¶
public torch::data::DataLoaderBase< Dataset, Dataset::BatchType, Sampler::BatchRequestType >
(Template Class DataLoaderBase)
Class Documentation¶
-
template<typename Dataset, typename Sampler>
class StatelessDataLoader : public torch::data::DataLoaderBase<Dataset, Dataset::BatchType, Sampler::BatchRequestType>¶ A dataloader for stateless datasets.
This dataloader follows the traditional PyTorch dataloader design, whereby a (posssibly) stateful sampler produces batch requests for a stateless dataset, which acts as a simple batch request to batch mapping. The batch request will often be an array of indices, and if the dataset is a simple image dataset, the dataset would produce the images at those indices.
Public Types
-
using super = DataLoaderBase<Dataset, typename Dataset::BatchType, typename Sampler::BatchRequestType>¶
-
using BatchRequestType = BatchRequest¶
Public Functions
-
inline StatelessDataLoader(Dataset dataset, Sampler sampler, DataLoaderOptions options)¶
Constructs the
StatelessDataLoader
from adataset
, asampler
and someoptions
.
-
using super = DataLoaderBase<Dataset, typename Dataset::BatchType, typename Sampler::BatchRequestType>¶