Skip to main content

run_passes

Function run_passes 

Source
pub fn run_passes(
    graph: &mut Graph,
    passes: &[Box<dyn OptimizationPass>],
    ctx: &PassContext,
) -> Result<()>
Expand description

Run passes over graph in order.

Each pass runs to completion, then — in debug builds only — its postconditions are checked. In release builds the postcondition check is compiled out for speed, matching the “checked in debug builds” contract of docs/ORT2.md §18.1.