Template Function torch::data::make_data_loader(Dataset, Sampler, DataLoaderOptions)¶
Defined in File dataloader.h
Function Documentation¶
-
template<typename Dataset, typename Sampler>
std::enable_if_t<!Dataset::is_stateful, std::unique_ptr<StatelessDataLoader<Dataset, Sampler>>> torch::data::make_data_loader(Dataset dataset, Sampler sampler, DataLoaderOptions options)¶ Creates a
DataLoader
instance for a statelessdataset
, asampler
and someoptions
.