oa::data::PrefetchDataLoader
Asynchronous batch iterator over a shared HostDataset. A single worker thread walks the epoch’s index order, calls get_host_sample, collates, and pushes HostBatch values into a queue bounded at prefetch_batches. next_batch pops on the caller thread, so sample production overlaps consumption; next_batch_on additionally uploads the collated batch to the runtime. Shuffle order, drop_last, and epoch resets share the DataLoader seed contract. One worker is the admitted contract: the queue depth already decouples production from consumption, and multi-worker partitioning would add index ownership without changing the device boundary.
Declaration
pub struct PrefetchDataLoader { /* private fields */ }Public Rust declaration.
Public Methods
Associated Functions
Public Method Documentation
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.