Skip to main content

Runtime

Trait Runtime 

Source
pub trait Runtime:
    Debug
    + Send
    + Sync
    + 'static {
    // Required methods
    fn name(&self) -> StaticName;
    fn prepare_with_options(
        &self,
        model: TypedModel,
        options: &RunOptions,
    ) -> TractResult<Box<dyn Runnable>>;

    // Provided method
    fn prepare(&self, model: TypedModel) -> TractResult<Box<dyn Runnable>> { ... }
}

Required Methods§

Source

fn name(&self) -> StaticName

Source

fn prepare_with_options( &self, model: TypedModel, options: &RunOptions, ) -> TractResult<Box<dyn Runnable>>

Provided Methods§

Source

fn prepare(&self, model: TypedModel) -> TractResult<Box<dyn Runnable>>

Implementors§