Like DataLoaderOptions
, but without any unconfigured state.
More...
#include <dataloader_options.h>
Public Member Functions | |
FullDataLoaderOptions (DataLoaderOptions options) | |
Data Fields | |
size_t | batch_size |
size_t | workers |
size_t | max_jobs |
optional< std::chrono::milliseconds > | timeout |
bool | enforce_ordering |
bool | drop_last |
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.
Definition at line 48 of file dataloader_options.h.