Rate this Page

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#