Skip to main content

micro_batch_size

Function micro_batch_size 

Source
pub fn micro_batch_size(pending: usize, ceiling: usize) -> usize
Expand description

The largest micro-batch size (from MICRO_BATCH_SIZES) that fits both the pending count and the device ceiling. Always at least 1.