Struct FullDataLoaderOptions

Page Contents

Struct Documentation

struct torch::data::FullDataLoaderOptions

Like DataLoaderOptions, but without any unconfigured state.

DataLoaderOptions has some options that depend on other options (max_jobs => 2 * workers). In the spirit of properly using the C++ type system, DataLoaderOptions allows only setting values. To access values, you must create a FullDataLoaderOptions from a DataLoaderOptions instance, which will do any necessary coalescing.

Public Functions

FullDataLoaderOptions(DataLoaderOptions options)

Public Members

size_t batch_size
size_t workers
size_t max_jobs
optional<std::chrono::milliseconds> timeout
bool enforce_ordering
bool drop_last


Access comprehensive developer documentation for PyTorch

View Docs


Get in-depth tutorials for beginners and advanced developers

View Tutorials


Find development resources and get your questions answered

View Resources