[][src]Struct tract_core::plan::SimplePlan

pub struct SimplePlan<TI: TensorInfo, M: Borrow<Model<TI>>> {
    pub model: M,
    pub outputs: Vec<OutletId>,
    pub order: Vec<usize>,
    pub flush_lists: Vec<TVec<usize>>,
    // some fields omitted
}

Fields

model: Moutputs: Vec<OutletId>order: Vec<usize>flush_lists: Vec<TVec<usize>>

Methods

impl<TI: TensorInfo, M: Borrow<Model<TI>>> SimplePlan<TI, M>[src]

pub fn new(model: M) -> TractResult<SimplePlan<TI, M>>[src]

This contructor returns a plan that will compute all the model default outputs in one pass.

pub fn new_for_output(
    model: M,
    output: OutletId
) -> TractResult<SimplePlan<TI, M>>
[src]

This contructor returns a plan that will compute the specified output.

pub fn new_for_outputs(
    model: M,
    outputs: &[OutletId]
) -> TractResult<SimplePlan<TI, M>>
[src]

This contructor returns a plan that will compute all specified outputs in one pass.

pub fn run(&self, inputs: TVec<Tensor>) -> TractResult<TVec<Arc<Tensor>>>[src]

pub fn model(&self) -> &Model<TI>[src]

Trait Implementations

impl<TI: Clone + TensorInfo, M: Clone + Borrow<Model<TI>>> Clone for SimplePlan<TI, M>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<TI: Debug + TensorInfo, M: Debug + Borrow<Model<TI>>> Debug for SimplePlan<TI, M>[src]

Auto Trait Implementations

impl<TI, M> Send for SimplePlan<TI, M> where
    M: Send,
    TI: Send

impl<TI, M> Sync for SimplePlan<TI, M> where
    M: Sync,
    TI: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> Clone for T where
    T: Clone
[src]