Struct tract_pulse::internal::tract_core::ops::matmul::MatMulAxes
[−]pub struct MatMulAxes {
pub a_m: usize,
pub a_k: usize,
pub b_k: usize,
pub b_n: usize,
pub c_m: usize,
pub c_n: usize,
}Fields
a_m: usizea_k: usizeb_k: usizeb_n: usizec_m: usizec_n: usizeImplementations
impl MatMulAxes
impl MatMulAxes
pub fn default_for_rank(rank: usize) -> MatMulAxes
pub fn default_for_ranks(a: usize, b: usize, c: usize) -> MatMulAxes
pub fn transposing_a(self) -> MatMulAxes
pub fn transposing_b(self) -> MatMulAxes
pub fn transposing_c(self) -> MatMulAxes
pub fn transposing(self, a: bool, b: bool, c: bool) -> MatMulAxes
pub fn change_axis_from_b(
&self,
change: &AxisOp,
bc_rank: usize
) -> Result<(MatMulAxes, Option<AxisOp>, Option<AxisOp>, Option<AxisOp>), Error>
pub fn change_axis_from_c(
&self,
change: &AxisOp,
bc_rank: usize
) -> Result<(MatMulAxes, Option<AxisOp>, Option<AxisOp>, Option<AxisOp>), Error>
pub fn to_array(&self) -> [usize; 6]
pub fn from_array(array: &[usize]) -> Result<MatMulAxes, Error>
Trait Implementations
impl Clone for MatMulAxes
impl Clone for MatMulAxes
fn clone(&self) -> MatMulAxes
fn clone(&self) -> MatMulAxes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Debug for MatMulAxes
impl Debug for MatMulAxes
impl Default for MatMulAxes
impl Default for MatMulAxes
fn default() -> MatMulAxes
fn default() -> MatMulAxes
Returns the “default value” for a type. Read more
impl Hash for MatMulAxes
impl Hash for MatMulAxes
impl PartialEq<MatMulAxes> for MatMulAxes
impl PartialEq<MatMulAxes> for MatMulAxes
fn eq(&self, other: &MatMulAxes) -> bool
fn eq(&self, other: &MatMulAxes) -> bool
impl Copy for MatMulAxes
impl StructuralPartialEq for MatMulAxes
Auto Trait Implementations
impl RefUnwindSafe for MatMulAxes
impl Send for MatMulAxes
impl Sync for MatMulAxes
impl Unpin for MatMulAxes
impl UnwindSafe for MatMulAxes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<W, Global>impl<W> Write for Box<W, Global>where
W: Write + ?Sized,impl<R> Read for Box<R, Global>where
R: Read + ?Sized,impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<W, Global>impl<W> Write for Box<W, Global>where
W: Write + ?Sized,impl<R> Read for Box<R, Global>where
R: Read + ?Sized,impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
W: Write + ?Sized,impl<R> Read for Box<R, Global>where
R: Read + ?Sized,impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read moresourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read moresourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read moresourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more