Class DataLoader.Builder
java.lang.Object
ai.beestream.jitnn.data.DataLoader.Builder
- Enclosing class:
DataLoader
Options of a
DataLoader: shuffling, worker threads, prefetching.-
Method Summary
Modifier and TypeMethodDescriptionbuild()The loader with these options.dropLast(boolean on) Leaves out the last batch when it is short.prefetch(int batches) Batches assembled ahead of the one being used, with workers (default 2).shuffle(long seed) Reshuffles every epoch, fromseedand the epoch number.Applied to every sample as its batch is assembled (augmentation, normalisation).workers(int n) Threads assembling batches ahead (0: on the caller's thread, when asked for).
-
Method Details
-
shuffle
Reshuffles every epoch, fromseedand the epoch number. -
dropLast
Leaves out the last batch when it is short. -
transform
Applied to every sample as its batch is assembled (augmentation, normalisation). -
workers
Threads assembling batches ahead (0: on the caller's thread, when asked for). -
prefetch
Batches assembled ahead of the one being used, with workers (default 2). -
build
The loader with these options.
-