Skip to main content

Api: compiled_function

Api members in the compiled_function family.

Member
compiled_function_call / f_compiled_function_call
compiled_function_free
compiled_function_from_graph / f_compiled_function_from_graph
compiled_function_recapture_count
compiled_function_state
compiled_function_take_graph / f_compiled_function_take_graph

compiled_function_call / f_compiled_function_call

fn f_compiled_function_call(self, self_: &CompiledFunction, inputs: &[&Tensor]) -> Result<TensorList>
fn compiled_function_call(self, self_: &CompiledFunction, inputs: &[&Tensor]) -> TensorList

Wraps api-table member compiled_function_call. call the function: inputs are BORROWED; returns the function's own outputs (surfaced state rides take_graph, never the call)

compiled_function_free

fn compiled_function_free(self, h: &CompiledFunction)

Wraps api-table member compiled_function_free.

compiled_function_from_graph / f_compiled_function_from_graph

fn f_compiled_function_from_graph(self, graph: ModelGraph) -> Result<CompiledFunction>
fn compiled_function_from_graph(self, graph: ModelGraph) -> CompiledFunction

Wraps api-table member compiled_function_from_graph. wrap an already-captured graph: born in the Compiled state, serving shape-matching calls from the graph; consumes graph (contract §6). No callable is attached; shape drift refuses readably, never an eager fallback or a silent re-capture

compiled_function_recapture_count

fn compiled_function_recapture_count(self, self_: &CompiledFunction) -> i64

Wraps api-table member compiled_function_recapture_count. ClikaRT::graph::CompiledFunction::recapture_count <- ClikaRT/graph/compile.h

compiled_function_state

fn compiled_function_state(self, self_: &CompiledFunction) -> clika_rt_state

Wraps api-table member compiled_function_state. ClikaRT::graph::CompiledFunction::state <- ClikaRT/graph/compile.h

compiled_function_take_graph / f_compiled_function_take_graph

fn f_compiled_function_take_graph(self, self_: &CompiledFunction) -> Result<ModelGraph>
fn compiled_function_take_graph(self, self_: &CompiledFunction) -> ModelGraph

Wraps api-table member compiled_function_take_graph. ClikaRT::graph::CompiledFunction::take_graph <- ClikaRT/graph/compile.h