Type Definition tract_core::model::typed::TypedModel [−][src]
type TypedModel = Graph<TypedFact, Box<dyn TypedOp>>;
A model with completely determined types and shapes.
Implementations
impl TypedModel
[src]
pub fn signature(&self) -> u64
[src]
pub fn into_optimized(self) -> TractResult<TypedModel>
[src]
pub fn declutter(&self) -> TractResult<TypedModel>
[src]
Perform declutter passes on the network.
pub fn concretize_dims(&self, values: &SymbolValues) -> TractResult<TypedModel>
[src]
pub fn optimize(self) -> TractResult<TypedModel>
[src]
Translate the graph to locally optimized operators (LIR or MIR ops).
pub fn invariants(&self) -> TractResult<Invariants>
[src]
Trait Implementations
impl SpecialOps<TypedFact, Box<dyn TypedOp + 'static, Global>> for TypedModel
[src]
fn is_source(op: &Box<dyn TypedOp>) -> bool
[src]
fn create_dummy(&self) -> Box<dyn TypedOp>ⓘNotable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?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
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?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
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
fn create_source(&self, fact: TypedFact) -> Box<dyn TypedOp>ⓘNotable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?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
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?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
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
fn wire_node(
&mut self,
name: impl Into<String>,
op: impl Into<Box<dyn TypedOp>>,
inputs: &[OutletId]
) -> TractResult<TVec<OutletId>>
[src]
&mut self,
name: impl Into<String>,
op: impl Into<Box<dyn TypedOp>>,
inputs: &[OutletId]
) -> TractResult<TVec<OutletId>>