Type Definition tract_hir::infer::InferenceModel [−][src]
pub type InferenceModel = Graph<InferenceFact, Box<dyn InferenceOp>>;
Expand description
A model with partially types and shapes, as produced by parsing ONNX or Tensorflow graphs.
Trait Implementations
Analyse all nodes of the graph.
Will stop on first error unless obstinate
is true
.
Perform early transformation before going typed.
List OutletId with incomplete type information.
Will stop on first error unless obstinate
is true
.
Eliminate seemingly dead branches of the graph.
This may break stateful networks.
Attempt full analyse and conversion to TypedModel.
Attempt full analyse, decluttering and mapping to optimized operations.
This is meant for “simple” networks, where no special model transformation needs to happen. Aternaltively, use to_typed() and manipulate the TypedModel for more control.
fn create_dummy(&self) -> Box<dyn InferenceOp>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
fn create_source(&self, _fact: InferenceFact) -> Box<dyn InferenceOp>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;