Skip to main content

classify_inference_outcome

Function classify_inference_outcome 

Source
pub(super) fn classify_inference_outcome(
    trt_fatal: bool,
    guard_rejected: bool,
    is_err: bool,
    consecutive_failures: u64,
    circuit_breaker_threshold: usize,
) -> InferenceOutcome
Expand description

Maps inference error flags to the worker-loop InferenceOutcome.