Skip to main content

plan_memory

Function plan_memory 

Source
pub fn plan_memory(module: &Module) -> MemoryPlan
Expand description

Analyze an IR module and produce a memory plan.

For each entry point (and helper function), determines tensor lifetimes and assigns buffer offsets using a greedy first-fit algorithm.