pub fn inline_functions(
model: &ModelProto,
) -> Result<Cow<'_, ModelProto>, LoaderError>Expand description
Expand every call to a model-local function in model into the function’s
body, so the returned ModelProto’s graph (and all nested subgraphs) contain
only calls to ops the runtime has kernels for.
When model.functions is empty this is a no-op and the input is borrowed
back unchanged (Cow::Borrowed). Otherwise a rewritten owned ModelProto
is returned with functions cleared and function opset imports merged in.