[−][src]Struct tract_nnef::registry::Registry
Fields
id: String
fragments: HashMap<String, FragmentDef>
primitives: HashMap<String, (Vec<Parameter>, ToTract)>
unit_element_wise_ops: Vec<(String, Box<dyn ElementWiseMiniOp>)>
element_wise_ops: Vec<(String, TypeId, FromTract, Vec<Parameter>, ToTract)>
binary_ops: Vec<(String, Box<dyn BinMiniOp>)>
from_tract: HashMap<TypeId, FromTract>
Implementations
impl Registry
[src]
pub fn new(id: impl Into<String>) -> Registry
[src]
pub fn register_dumper(&mut self, id: TypeId, func: FromTract)
[src]
pub fn register_primitive(
&mut self,
id: &str,
decl: &[Parameter],
func: ToTract
)
[src]
&mut self,
id: &str,
decl: &[Parameter],
func: ToTract
)
pub fn register_fragment(&mut self, def: FragmentDef)
[src]
pub fn register_unit_element_wise(
&mut self,
id: impl Into<String>,
ew: &dyn ElementWiseMiniOp
)
[src]
&mut self,
id: impl Into<String>,
ew: &dyn ElementWiseMiniOp
)
pub fn register_element_wise(
&mut self,
id: impl Into<String>,
type_id: TypeId,
dumper: FromTract,
parameters: Vec<Parameter>,
loader: ToTract
)
[src]
&mut self,
id: impl Into<String>,
type_id: TypeId,
dumper: FromTract,
parameters: Vec<Parameter>,
loader: ToTract
)
pub fn register_binary(&mut self, id: impl Into<String>, op: &dyn BinMiniOp)
[src]
pub fn serialize(
&self,
ast: &mut IntoAst<'_>,
node: &TypedNode
) -> TractResult<Option<Arc<RValue>>>
[src]
&self,
ast: &mut IntoAst<'_>,
node: &TypedNode
) -> TractResult<Option<Arc<RValue>>>
pub fn deserialize(
&self,
builder: &mut ModelBuilder<'_>,
invocation: &Invocation
) -> TractResult<Option<Value>>
[src]
&self,
builder: &mut ModelBuilder<'_>,
invocation: &Invocation
) -> TractResult<Option<Value>>
Auto Trait Implementations
impl !RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl !UnwindSafe for Registry
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,
fn borrow(&self) -> &TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?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 W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?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,
fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?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 W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?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,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>ⓘNotable traits for Box<W>
impl<W> Write for Box<W> where
W: Write + ?Sized, impl<R> Read for Box<R> where
R: Read + ?Sized, impl<F> Future for Box<F> where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<I> Iterator for Box<I> where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
Notable traits for Box<W>
impl<W> Write for Box<W> where
W: Write + ?Sized, impl<R> Read for Box<R> where
R: Read + ?Sized, impl<F> Future for Box<F> where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<I> Iterator for Box<I> where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
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.
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>,