Struct tract_core::ops::matmul::MatMulAxes
source · 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: usize§a_k: usize§b_k: usize§b_n: usize§c_m: usize§c_n: usizeImplementations§
source§impl MatMulAxes
impl MatMulAxes
pub fn default_for_rank(rank: usize) -> Self
pub fn default_for_ranks(a: usize, b: usize, c: usize) -> Self
pub fn transposing_a(self) -> Self
pub fn transposing_b(self) -> Self
pub fn transposing_c(self) -> Self
pub fn transposing(self, a: bool, b: bool, c: bool) -> Self
pub fn change_axis_from_b( &self, change: &AxisOp, bc_rank: usize ) -> TractResult<(MatMulAxes, Option<AxisOp>, Option<AxisOp>, Option<AxisOp>)>
pub fn change_axis_from_c( &self, change: &AxisOp, bc_rank: usize ) -> TractResult<(MatMulAxes, Option<AxisOp>, Option<AxisOp>, Option<AxisOp>)>
pub fn to_array(&self) -> [usize; 6]
pub fn from_array(array: &[usize]) -> TractResult<Self>
Trait Implementations§
source§impl Clone for MatMulAxes
impl Clone for MatMulAxes
source§fn clone(&self) -> MatMulAxes
fn clone(&self) -> MatMulAxes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MatMulAxes
impl Debug for MatMulAxes
source§impl Default for MatMulAxes
impl Default for MatMulAxes
source§impl Hash for MatMulAxes
impl Hash for MatMulAxes
source§impl PartialEq<MatMulAxes> for MatMulAxes
impl PartialEq<MatMulAxes> for MatMulAxes
source§fn eq(&self, other: &MatMulAxes) -> bool
fn eq(&self, other: &MatMulAxes) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for MatMulAxes
impl Eq for MatMulAxes
impl StructuralEq 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
source§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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.source§fn 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.source§fn 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.source§fn 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.