Skip to main content

choose_batch_mode

Function choose_batch_mode 

Source
pub fn choose_batch_mode(
    ram_budget_mb: u64,
    models_resident_mb: u64,
) -> BatchMode
Expand description

Pick the execution mode: go vertical only when the estimated resident set fits the RAM budget; otherwise stay horizontal to bound peak memory.