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: usize
§a_k: usize
§b_k: usize
§b_n: usize
§c_m: usize
§c_n: usize
Implementations§
§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 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl 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
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> 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.