Skip to main content

execute_multi

Function execute_multi 

Source
pub fn execute_multi<B: Backend + ?Sized>(
    backend: &B,
    op_type: &str,
    inputs: &[&B::Tensor],
    attributes: Vec<AttributeProto>,
    output_count: usize,
) -> Result<Vec<B::Tensor>, B::Error>
Expand description

Default body for multi-output per-op methods (Backend::split today). Builds a one-node GraphProto with output_count positionally-named outputs, calls Backend::execute, and extracts the outputs in declared order.

If output_count == 0, returns an empty Vec without invoking execute — multi-output ops with zero outputs are degenerate and the engine never produces such carriers.