[−][src]Struct tract_nnef::framework::Nnef
Fields
stdlib: Vec<FragmentDef>
registries: Vec<Registry>
Implementations
impl Nnef
[src]
pub fn new() -> Nnef
[src]
pub fn with_registry(self, registry: Registry) -> Nnef
[src]
pub fn with_tract_core(self) -> Self
[src]
pub fn translate(
&self,
proto_model: &ProtoModel
) -> Result<TypedModel, (TypedModel, TractError)>
[src]
&self,
proto_model: &ProtoModel
) -> Result<TypedModel, (TypedModel, TractError)>
pub fn write(&self, model: &TypedModel, w: impl Write) -> TractResult<()>
[src]
pub fn write_to_tar<W: Write>(&self, model: &TypedModel, w: W) -> TractResult<W>
[src]
pub fn write_to_dir(
&self,
model: &TypedModel,
path: impl AsRef<Path>
) -> TractResult<()>
[src]
&self,
model: &TypedModel,
path: impl AsRef<Path>
) -> TractResult<()>
Trait Implementations
impl Framework<ProtoModel, Graph<TypedFact, Box<dyn TypedOp + 'static, Global>>> for Nnef
[src]
pub fn model_for_path(&self, p: impl AsRef<Path>) -> TractResult<TypedModel>
[src]
pub fn proto_model_for_path(
&self,
path: impl AsRef<Path>
) -> TractResult<ProtoModel>
[src]
&self,
path: impl AsRef<Path>
) -> TractResult<ProtoModel>
pub fn proto_model_for_read(
&self,
reader: &mut dyn Read
) -> TractResult<ProtoModel>
[src]
&self,
reader: &mut dyn Read
) -> TractResult<ProtoModel>
pub fn model_for_proto_model(
&self,
proto: &ProtoModel
) -> TractResult<TypedModel>
[src]
&self,
proto: &ProtoModel
) -> TractResult<TypedModel>
pub fn model_for_read(&self, r: &mut dyn Read) -> Result<Model, Error>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Nnef
[src]
impl Send for Nnef
[src]
impl Sync for Nnef
[src]
impl Unpin for Nnef
[src]
impl !UnwindSafe for Nnef
[src]
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,
pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘ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<I, A> Iterator for Box<I, A> where
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Unpin + Future + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
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<I, A> Iterator for Box<I, A> where
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Unpin + Future + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
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.
pub 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>,