[−][src]Struct tract_core::plan::SimplePlan  
Fields
model: Moutputs: Vec<OutletId>order: Vec<usize>flush_lists: Vec<TVec<usize>>Implementations
impl<F, O, M> SimplePlan<F, O, M> where
    F: Fact + Hash + Clone + 'static,
    O: Debug + Display + AsRef<dyn Op> + AsMut<dyn Op> + Clone + 'static + Hash,
    M: Borrow<Graph<F, O>> + Hash, [src]
F: Fact + Hash + Clone + 'static,
O: Debug + Display + AsRef<dyn Op> + AsMut<dyn Op> + Clone + 'static + Hash,
M: Borrow<Graph<F, O>> + Hash,
pub fn new(model: M) -> TractResult<SimplePlan<F, O, 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<F, O, M>>[src]
model: M,
output: OutletId
) -> TractResult<SimplePlan<F, O, M>>
This contructor returns a plan that will compute the specified output.
pub fn new_for_outputs(
    model: M, 
    outputs: &[OutletId]
) -> TractResult<SimplePlan<F, O, M>>[src]
model: M,
outputs: &[OutletId]
) -> TractResult<SimplePlan<F, O, M>>
This contructor returns a plan that will compute all specified outputs in one pass.
pub fn new_for_outputs_and_deps(
    model: M, 
    outputs: &[OutletId], 
    deps: &[(usize, usize)]
) -> TractResult<SimplePlan<F, O, M>>[src]
model: M,
outputs: &[OutletId],
deps: &[(usize, usize)]
) -> TractResult<SimplePlan<F, O, M>>
pub fn run(&self, inputs: TVec<Tensor>) -> TractResult<TVec<Arc<Tensor>>>[src]
pub fn model(&self) -> &Graph<F, O>[src]
Trait Implementations
impl<F: Clone, O: Clone, M: Clone> Clone for SimplePlan<F, O, M> where
    F: Fact + Hash + Clone + 'static,
    O: Debug + Display + AsRef<dyn Op> + AsMut<dyn Op> + Clone + 'static + Hash,
    M: Borrow<Graph<F, O>> + Hash, [src]
F: Fact + Hash + Clone + 'static,
O: Debug + Display + AsRef<dyn Op> + AsMut<dyn Op> + Clone + 'static + Hash,
M: Borrow<Graph<F, O>> + Hash,
fn clone(&self) -> SimplePlan<F, O, M>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<F: Debug, O: Debug, M: Debug> Debug for SimplePlan<F, O, M> where
    F: Fact + Hash + Clone + 'static,
    O: Debug + Display + AsRef<dyn Op> + AsMut<dyn Op> + Clone + 'static + Hash,
    M: Borrow<Graph<F, O>> + Hash, [src]
F: Fact + Hash + Clone + 'static,
O: Debug + Display + AsRef<dyn Op> + AsMut<dyn Op> + Clone + 'static + Hash,
M: Borrow<Graph<F, O>> + Hash,
impl<F, O, M> Hash for SimplePlan<F, O, M> where
    F: Fact + Hash + Clone + 'static,
    O: Debug + Display + AsRef<dyn Op> + AsMut<dyn Op> + Clone + 'static + Hash,
    M: Borrow<Graph<F, O>> + Hash, [src]
F: Fact + Hash + Clone + 'static,
O: Debug + Display + AsRef<dyn Op> + AsMut<dyn Op> + Clone + 'static + Hash,
M: Borrow<Graph<F, O>> + Hash,
Auto Trait Implementations
impl<F, O, M> RefUnwindSafe for SimplePlan<F, O, M> where
    F: RefUnwindSafe,
    M: RefUnwindSafe,
    O: RefUnwindSafe, 
F: RefUnwindSafe,
M: RefUnwindSafe,
O: RefUnwindSafe,
impl<F, O, M> Send for SimplePlan<F, O, M> where
    M: Send,
    O: Send, 
M: Send,
O: Send,
impl<F, O, M> Sync for SimplePlan<F, O, M> where
    M: Sync,
    O: Sync, 
M: Sync,
O: Sync,
impl<F, O, M> Unpin for SimplePlan<F, O, M> where
    F: Unpin,
    M: Unpin,
    O: Unpin, 
F: Unpin,
M: Unpin,
O: Unpin,
impl<F, O, M> UnwindSafe for SimplePlan<F, O, M> where
    F: UnwindSafe,
    M: UnwindSafe,
    O: UnwindSafe, 
F: UnwindSafe,
M: UnwindSafe,
O: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Downcast for T where
    T: Any, [src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>[src]
fn into_any_rc(self: Rc<T>) -> Rc<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> DowncastSync for T where
    T: Send + Sync + Any, [src]
T: Send + Sync + Any,
impl<T> DynClone for T where
    T: Clone, [src]
T: Clone,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
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, 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>,