[][src]Enum tract_core::ops::matmul::mmm_wrapper::MMMWrapper

pub enum MMMWrapper<TA, TB, TC, TI> where
    TA: Datum + Copy + Zero,
    TB: Datum + Copy + Zero,
    TC: Datum + Copy,
    TI: Datum + Copy + Add + Mul + Zero + Debug
{ Plain(Box<dyn MatMatMul<TA, TB, TC, TI>>), Quant(Box<dyn QMatMatMul<TA, TB, TC, TI>>), }

Variants

Plain(Box<dyn MatMatMul<TA, TB, TC, TI>>)
Quant(Box<dyn QMatMatMul<TA, TB, TC, TI>>)

Implementations

impl<TA, TB, TC, TI> MMMWrapper<TA, TB, TC, TI> where
    TA: Datum + Copy + Zero,
    TB: Datum + Copy + Zero,
    TC: Datum + Copy,
    TI: Datum + Copy + Add + Mul + Zero + Debug
[src]

pub fn as_mmm(&self) -> &dyn MatMatMul<TA, TB, TC, TI>[src]

pub fn as_mmm_mut(&mut self) -> &mut dyn MatMatMul<TA, TB, TC, TI>[src]

pub fn as_quant(&self) -> Option<&dyn QMatMatMul<TA, TB, TC, TI>>[src]

pub fn as_quant_mut(&mut self) -> Option<&mut dyn QMatMatMul<TA, TB, TC, TI>>[src]

pub unsafe fn run(
    &self,
    a: *const TA,
    b: *const TB,
    c: *mut TC,
    non_linear: &[FusedSpec<TI>]
)
[src]

pub fn set_quant_params(&mut self, params: &QParams) -> TractResult<()>[src]

Trait Implementations

impl<TA: Clone, TB: Clone, TC: Clone, TI: Clone> Clone for MMMWrapper<TA, TB, TC, TI> where
    TA: Datum + Copy + Zero,
    TB: Datum + Copy + Zero,
    TC: Datum + Copy,
    TI: Datum + Copy + Add + Mul + Zero + Debug
[src]

impl<TA: Debug, TB: Debug, TC: Debug, TI: Debug> Debug for MMMWrapper<TA, TB, TC, TI> where
    TA: Datum + Copy + Zero,
    TB: Datum + Copy + Zero,
    TC: Datum + Copy,
    TI: Datum + Copy + Add + Mul + Zero + Debug
[src]

impl<TA, TB, TC, TI> Display for MMMWrapper<TA, TB, TC, TI> where
    TA: Datum + Copy + Zero,
    TB: Datum + Copy + Zero,
    TC: Datum + Copy,
    TI: Datum + Copy + Add + Mul + Zero + Debug
[src]

impl<TA, TB, TC, TI> Hash for MMMWrapper<TA, TB, TC, TI> where
    TA: Datum + Copy + Zero,
    TB: Datum + Copy + Zero,
    TC: Datum + Copy,
    TI: Datum + Copy + Add + Mul + Zero + Debug
[src]

Auto Trait Implementations

impl<TA, TB, TC, TI> !RefUnwindSafe for MMMWrapper<TA, TB, TC, TI>

impl<TA, TB, TC, TI> Send for MMMWrapper<TA, TB, TC, TI>

impl<TA, TB, TC, TI> Sync for MMMWrapper<TA, TB, TC, TI>

impl<TA, TB, TC, TI> Unpin for MMMWrapper<TA, TB, TC, TI>

impl<TA, TB, TC, TI> !UnwindSafe for MMMWrapper<TA, TB, TC, TI>

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: Send + Sync + Any
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.