Skip to main content

eval_exec_ir_unsegmented

Function eval_exec_ir_unsegmented 

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

Evaluate an ExecProgram one instruction at a time.

This is retained for parity tests against segmented dispatch.

ยงExamples

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

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