Trait burn::data::dataloader::batcher::Batcher

pub trait Batcher<I, O>: Send {
    // Required method
    fn batch(&self, items: Vec<I>) -> O;
}
Expand description

A trait for batching items of type I into items of type O.

Required Methods§

fn batch(&self, items: Vec<I>) -> O

Batches the given items.

§Arguments
  • items - The items to batch.
§Returns

The batched items.

Implementors§