Struct tract_pulse::internal::Nnef[]

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

Fields

stdlib: Vec<FragmentDef, Global>registries: Vec<Registry, Global>

Implementations

impl Nnef

pub fn new() -> Nnef

pub fn with_registry(self, registry: Registry) -> Nnef

pub fn with_tract_core(self) -> Nnef

pub fn translate(
    &self,
    proto_model: &ProtoModel
) -> Result<Graph<TypedFact, Box<dyn TypedOp + 'static, Global>>, (Graph<TypedFact, Box<dyn TypedOp + 'static, Global>>, Error)>

pub fn write(
    &self,
    model: &Graph<TypedFact, Box<dyn TypedOp + 'static, Global>>,
    w: impl Write
) -> Result<(), Error>

pub fn write_to_tar<W>(
    &self,
    model: &Graph<TypedFact, Box<dyn TypedOp + 'static, Global>>,
    w: W
) -> Result<W, Error> where
    W: Write

pub fn write_to_dir(
    &self,
    model: &Graph<TypedFact, Box<dyn TypedOp + 'static, Global>>,
    path: impl AsRef<Path>
) -> Result<(), Error>

Trait Implementations

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

impl WithPulse for Nnef[src]

impl WithPulse 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
[src]

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

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.