Skip to main content

controlled_batch_count

Function controlled_batch_count 

Source
pub fn controlled_batch_count(token_counts: &[usize]) -> usize
Expand description

Returns the number of batches that embed_passages_controlled would produce for the given token_counts slice without running inference.