Skip to main content

execute

Function execute 

Source
pub fn execute(graph: &Graph, arena: &mut Arena, external: &ExternalBuffers<'_>)
Expand description

Execute a compiled graph on CPU.

The graph should already be fused and memory-planned. arena holds all intermediate buffers. external provides input data and model weights.

Returns the output node IDs (data is in the arena).