Skip to main content

Executable

Trait Executable 

Source
pub trait Executable {
    // Required method
    fn run(&self, inputs: &[Tensor]) -> Result<Vec<Tensor>, Error>;
}

Required Methods§

Source

fn run(&self, inputs: &[Tensor]) -> Result<Vec<Tensor>, Error>

inputs follow the graph’s declared input order; the result follows the graph’s output order.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§