[][src]Struct tract_core::analyser::Analyser

pub struct Analyser<M: BorrowMut<InferenceModel>> { /* fields omitted */ }

A graph analyser, along with its current state.

Methods

impl<M: BorrowMut<InferenceModel>> Analyser<M>[src]

pub fn new(model: M) -> Self[src]

Constructs a new Analyser.

impl<M: BorrowMut<InferenceModel>> Analyser<M>[src]

pub fn analyse_obstinate(&mut self, obstinate: bool) -> TractResult<()>[src]

Runs the entire analysis at once. Will not stop on error if obstinate is true.

pub fn analyse_one(
    &mut self,
    node: usize
) -> TractResult<Vec<(OutletId, InferenceFact)>>
[src]

Tries to run a single step of the analysis, and returns whether there was any additional information gained during the step.

Auto Trait Implementations

impl<M> Send for Analyser<M> where
    M: Send

impl<M> Sync for Analyser<M> where
    M: Sync

impl<M> Unpin for Analyser<M> where
    M: Unpin

impl<M> UnwindSafe for Analyser<M> where
    M: UnwindSafe

impl<M> RefUnwindSafe for Analyser<M> where
    M: RefUnwindSafe

Blanket Implementations

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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<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]