[]Enum tract_pulse::internal::tract_core::ops::matmul::MMMWrapper

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

Variants

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

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<TI> + Mul<TI> + Zero + Debug

pub fn as_mmm(&self) -> &(dyn MatMatMul<TA, TB, TC, TI> + 'static)

pub fn as_mmm_mut(&mut self) -> &mut (dyn MatMatMul<TA, TB, TC, TI> + 'static)

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

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

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

pub fn set_quant_params(&mut self, params: &QParams) -> Result<(), Error>

Trait Implementations

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

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

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<TI> + Mul<TI> + Zero + Debug

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<TI> + Mul<TI> + Zero + Debug

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.