[][src]Struct tract_linalg::Ops

pub struct Ops {
    pub mmm_f32: Box<dyn Fn(usize, usize, usize) -> Box<dyn MatMatMul> + Send + Sync>,
    pub qmmm_i8_i32: Box<dyn Fn(usize, usize, usize) -> Box<dyn MatMatMul> + Send + Sync>,
    pub qmmm_u8_i32: Box<dyn Fn(usize, usize, usize) -> Box<dyn MatMatMul> + Send + Sync>,
    pub qmmm_u8_u8: Box<dyn Fn(usize, usize, usize) -> Box<dyn MatMatMul> + Send + Sync>,
    pub qmmm_i8_i8: Box<dyn Fn(usize, usize, usize) -> Box<dyn MatMatMul> + Send + Sync>,
    pub qmmm_i8_u8_i32: Box<dyn Fn(usize, usize, usize) -> Box<dyn MatMatMul> + Send + Sync>,
    pub sigmoid_f32: Box<dyn Fn() -> Box<dyn Sigmoid<f32>> + Send + Sync>,
    pub tanh_f32: Box<dyn Fn() -> Box<dyn Tanh<f32>> + Send + Sync>,
    pub lut_u8: Box<dyn Fn(&[u8]) -> Box<dyn Lut> + Send + Sync>,
    // some fields omitted
}

Fields

mmm_f32: Box<dyn Fn(usize, usize, usize) -> Box<dyn MatMatMul> + Send + Sync>qmmm_i8_i32: Box<dyn Fn(usize, usize, usize) -> Box<dyn MatMatMul> + Send + Sync>qmmm_u8_i32: Box<dyn Fn(usize, usize, usize) -> Box<dyn MatMatMul> + Send + Sync>qmmm_u8_u8: Box<dyn Fn(usize, usize, usize) -> Box<dyn MatMatMul> + Send + Sync>qmmm_i8_i8: Box<dyn Fn(usize, usize, usize) -> Box<dyn MatMatMul> + Send + Sync>qmmm_i8_u8_i32: Box<dyn Fn(usize, usize, usize) -> Box<dyn MatMatMul> + Send + Sync>sigmoid_f32: Box<dyn Fn() -> Box<dyn Sigmoid<f32>> + Send + Sync>tanh_f32: Box<dyn Fn() -> Box<dyn Tanh<f32>> + Send + Sync>lut_u8: Box<dyn Fn(&[u8]) -> Box<dyn Lut> + Send + Sync>

Implementations

impl Ops[src]

pub fn mmm(
    &self,
    a: DatumType,
    b: DatumType,
    c: DatumType,
    m: usize,
    k: usize,
    n: usize
) -> Option<Box<dyn MatMatMul>>
[src]

Auto Trait Implementations

impl !RefUnwindSafe for Ops

impl Send for Ops

impl Sync for Ops

impl Unpin for Ops

impl !UnwindSafe for Ops

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> 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.