[−][src]Struct tract_core::plan::SimplePlan
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]
model: M,
output: OutletId
) -> TractResult<SimplePlan<TI, M>>
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]
model: M,
outputs: &[OutletId]
) -> TractResult<SimplePlan<TI, M>>
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(&self) -> 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,
M: Send,
TI: Send,
impl<TI, M> Sync for SimplePlan<TI, M> where
M: Sync,
TI: Sync,
M: Sync,
TI: Sync,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Downcast for T where
T: Any, [src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>[src]
fn as_any(&self) -> &(dyn Any + 'static)[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)[src]
impl<T> Clone for T where
T: Clone, [src]
T: Clone,