4 #include <torch/types.h> 16 : batch_size_(batch_size) {}
50 : batch_size(options.batch_size_),
51 workers(options.workers_),
52 max_jobs(options.max_jobs_.value_or(2 * workers)),
53 timeout(options.timeout_),
54 enforce_ordering(options.enforce_ordering_),
55 drop_last(options.drop_last_) {}
61 bool enforce_ordering;
TORCH_ARG(size_t, batch_size)
The size of each batch to fetch.
Like DataLoaderOptions, but without any unconfigured state.
Options to configure a DataLoader.