Shortcuts

Struct FullDataLoaderOptions

Page Contents

Struct Documentation

struct 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

inline explicit FullDataLoaderOptions(DataLoaderOptions options)

Public Members

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

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources