[][src]Struct tract_nnef::framework::Nnef

pub struct Nnef {
    pub stdlib: Vec<FragmentDef>,
    pub registries: Vec<Registry>,
}

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]

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]

Trait Implementations

impl Framework<ProtoModel, Graph<TypedFact, Box<dyn TypedOp + 'static, Global>>> for Nnef[src]

Auto Trait Implementations

impl !RefUnwindSafe for Nnef

impl Send for Nnef

impl Sync for Nnef

impl Unpin for Nnef

impl !UnwindSafe for Nnef

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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.