Skip to main content

batch_indices

Function batch_indices 

Source
pub fn batch_indices<T>(batch_membership: &[T]) -> Vec<usize>
where T: Hash + Eq + Clone,
Expand description

Map arbitrary batch keys to 0..n_batches in order of first appearance.