Skip to main content

eval_exec_ir

Function eval_exec_ir 

Source
pub fn eval_exec_ir<B: TensorBackend>(
    backend: &mut B,
    program: &ExecProgram,
    inputs: Vec<Tensor>,
) -> Result<Vec<Tensor>>
Expand description

Evaluate an ExecProgram using segmented dispatch.

Consecutive fusible ops are executed within one backend execution session.

ยงExamples

use tenferro::exec::{eval_exec_ir, ExecProgram};
use tenferro::CpuBackend;

let _eval: fn(&mut CpuBackend, &ExecProgram, Vec<tenferro::Tensor>) -> tenferro::error::Result<Vec<tenferro::Tensor>> =
    eval_exec_ir::<CpuBackend>;