[−]Struct tract_tensorflow::prelude::tract_linalg::frame::mmm::MatMatMulImpl
Fields
m: usize
k: usize
n: usize
a_storage: MatrixStoreSpec
b_storage: MatrixStoreSpec
c_storage: MatrixStoreSpec
zero_point_a: Option<Tensor>
zero_point_b: Option<Tensor>
zero_point_c: Option<Tensor>
scale_factor: Option<(TI, usize)>
Implementations
impl<K, TA, TB, TC, TI> MatMatMulImpl<K, TA, TB, TC, TI> where
K: MatMatMulKer<TI> + 'static,
TI: Copy + Add<TI> + Mul<TI> + Zero + Debug + 'static,
TA: Copy + Zero + 'static,
TB: Copy + Zero + 'static,
TC: Copy + Debug + 'static,
K: MatMatMulKer<TI> + 'static,
TI: Copy + Add<TI> + Mul<TI> + Zero + Debug + 'static,
TA: Copy + Zero + 'static,
TB: Copy + Zero + 'static,
TC: Copy + Debug + 'static,
pub fn new(m: usize, k: usize, n: usize) -> MatMatMulImpl<K, TA, TB, TC, TI>
Trait Implementations
impl<K, TA, TB, TC, TI> Clone for MatMatMulImpl<K, TA, TB, TC, TI> where
K: Clone + MatMatMulKer<TI> + 'static,
TI: Clone + Copy + Add<TI> + Mul<TI> + Zero + Debug + 'static,
TA: Clone + Copy + Zero + 'static,
TB: Clone + Copy + Zero + 'static,
TC: Clone + Copy + Debug + 'static,
K: Clone + MatMatMulKer<TI> + 'static,
TI: Clone + Copy + Add<TI> + Mul<TI> + Zero + Debug + 'static,
TA: Clone + Copy + Zero + 'static,
TB: Clone + Copy + Zero + 'static,
TC: Clone + Copy + Debug + 'static,
pub fn clone(&self) -> MatMatMulImpl<K, TA, TB, TC, TI>
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<K, TA, TB, TC, TI> Debug for MatMatMulImpl<K, TA, TB, TC, TI> where
K: Debug + MatMatMulKer<TI> + 'static,
TI: Debug + Copy + Add<TI> + Mul<TI> + Zero + 'static,
TA: Debug + Copy + Zero + 'static,
TB: Debug + Copy + Zero + 'static,
TC: Debug + Copy + 'static,
K: Debug + MatMatMulKer<TI> + 'static,
TI: Debug + Copy + Add<TI> + Mul<TI> + Zero + 'static,
TA: Debug + Copy + Zero + 'static,
TB: Debug + Copy + Zero + 'static,
TC: Debug + Copy + 'static,
impl<K, TA, TB, TC, TI> Display for MatMatMulImpl<K, TA, TB, TC, TI> where
K: MatMatMulKer<TI>,
TI: Copy + Add<TI> + Mul<TI> + Zero + Debug + 'static,
TA: Copy + Zero + 'static,
TB: Copy + Zero + 'static,
TC: Copy + Debug + 'static,
K: MatMatMulKer<TI>,
TI: Copy + Add<TI> + Mul<TI> + Zero + Debug + 'static,
TA: Copy + Zero + 'static,
TB: Copy + Zero + 'static,
TC: Copy + Debug + 'static,
impl<K, TA, TB, TC, TI> MatMatMul for MatMatMulImpl<K, TA, TB, TC, TI> where
K: MatMatMulKer<TI> + 'static,
TI: Datum + Copy + Add<TI> + Mul<TI, Output = TI> + Zero + Debug + 'static + Neg<Output = TI>,
TA: Datum + Copy + Zero + Debug + 'static + AsPrimitive<TI>,
TB: Datum + Copy + Zero + Debug + 'static + AsPrimitive<TI>,
TC: Datum + Copy + Debug + 'static + Bounded + AsPrimitive<TI>,
i32: AsPrimitive<TI>,
usize: AsPrimitive<TI>,
K: MatMatMulKer<TI> + 'static,
TI: Datum + Copy + Add<TI> + Mul<TI, Output = TI> + Zero + Debug + 'static + Neg<Output = TI>,
TA: Datum + Copy + Zero + Debug + 'static + AsPrimitive<TI>,
TB: Datum + Copy + Zero + Debug + 'static + AsPrimitive<TI>,
TC: Datum + Copy + Debug + 'static + Bounded + AsPrimitive<TI>,
i32: AsPrimitive<TI>,
usize: AsPrimitive<TI>,
pub fn a_pack(&self) -> Packer
pub fn b_pack(&self) -> Packer
pub fn internal_type(&self) -> DatumType
pub fn a_storage(&self) -> &MatrixStoreSpec
pub fn b_storage(&self) -> &MatrixStoreSpec
pub fn c_storage(&self) -> &MatrixStoreSpec
pub unsafe fn b_from_data_and_offsets(
&mut self,
rows_offsets: &[isize],
cols_offsets: &[isize]
)
&mut self,
rows_offsets: &[isize],
cols_offsets: &[isize]
)
pub unsafe fn b_vec_from_data_and_stride(&mut self, stride: isize)
pub unsafe fn b_vec_from_data(&mut self)
pub unsafe fn c_from_data_and_strides(
&mut self,
row_stride: isize,
col_stride: isize
)
&mut self,
row_stride: isize,
col_stride: isize
)
pub unsafe fn c_vec_from_data_and_stride(&mut self, stride: isize)
pub unsafe fn c_vec_from_data(&mut self)
pub unsafe fn run(
&self,
a: &TensorView<'_>,
b: &TensorView<'_>,
c: &mut TensorView<'_>,
non_linear: &[FusedSpec]
) -> Result<(), Error>
&self,
a: &TensorView<'_>,
b: &TensorView<'_>,
c: &mut TensorView<'_>,
non_linear: &[FusedSpec]
) -> Result<(), Error>
pub unsafe fn set_zero_point_a(&mut self, value: Tensor)
pub unsafe fn set_zero_point_b(&mut self, value: Tensor)
pub unsafe fn set_zero_point_c(&mut self, value: Tensor)
pub unsafe fn set_scale_factor(&mut self, factor: f32)
impl<K, TA, TB, TC, TI> Send for MatMatMulImpl<K, TA, TB, TC, TI> where
K: MatMatMulKer<TI> + 'static,
TI: Copy + Add<TI> + Mul<TI> + Zero + Debug + 'static,
TA: Copy + Zero + 'static,
TB: Copy + Zero + 'static,
TC: Copy + Debug + 'static,
K: MatMatMulKer<TI> + 'static,
TI: Copy + Add<TI> + Mul<TI> + Zero + Debug + 'static,
TA: Copy + Zero + 'static,
TB: Copy + Zero + 'static,
TC: Copy + Debug + 'static,
impl<K, TA, TB, TC, TI> Sync for MatMatMulImpl<K, TA, TB, TC, TI> where
K: MatMatMulKer<TI> + 'static,
TI: Copy + Add<TI> + Mul<TI> + Zero + Debug + 'static,
TA: Copy + Zero + 'static,
TB: Copy + Zero + 'static,
TC: Copy + Debug + 'static,
K: MatMatMulKer<TI> + 'static,
TI: Copy + Add<TI> + Mul<TI> + Zero + Debug + 'static,
TA: Copy + Zero + 'static,
TB: Copy + Zero + 'static,
TC: Copy + Debug + 'static,
Auto Trait Implementations
impl<K, TA, TB, TC, TI> RefUnwindSafe for MatMatMulImpl<K, TA, TB, TC, TI> where
K: RefUnwindSafe,
TA: RefUnwindSafe,
TB: RefUnwindSafe,
TC: RefUnwindSafe,
TI: RefUnwindSafe,
[src]
K: RefUnwindSafe,
TA: RefUnwindSafe,
TB: RefUnwindSafe,
TC: RefUnwindSafe,
TI: RefUnwindSafe,
impl<K, TA, TB, TC, TI> Unpin for MatMatMulImpl<K, TA, TB, TC, TI> where
K: Unpin,
TA: Unpin,
TB: Unpin,
TC: Unpin,
TI: Unpin,
[src]
K: Unpin,
TA: Unpin,
TB: Unpin,
TC: Unpin,
TI: Unpin,
impl<K, TA, TB, TC, TI> UnwindSafe for MatMatMulImpl<K, TA, TB, TC, TI> where
K: UnwindSafe,
TA: UnwindSafe,
TB: UnwindSafe,
TC: UnwindSafe,
TI: UnwindSafe,
[src]
K: UnwindSafe,
TA: UnwindSafe,
TB: UnwindSafe,
TC: UnwindSafe,
TI: UnwindSafe,
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,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Unpin + Future + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
Notable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Unpin + Future + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub 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> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,