Collate

Trait Collate 

Source
pub trait Collate<T>: Send + Sync {
    type Output;

    // Required method
    fn collate(&self, batch: Vec<T>) -> Self::Output;
}
Expand description

Trait for collating samples into batches.

Required Associated Types§

Source

type Output

The output batch type.

Required Methods§

Source

fn collate(&self, batch: Vec<T>) -> Self::Output

Collates a vector of samples into a batch.

Implementors§