pub struct MatmulProblem {
pub m: usize,
pub n: usize,
pub k: usize,
pub lhs_batches: Vec<usize>,
pub rhs_batches: Vec<usize>,
pub lhs_layout: MatrixLayout,
pub rhs_layout: MatrixLayout,
}
Expand description
Description of a matmul problem to solve, regardless of actual data
Fields§
§m: usize
Number of rows in the output matrix
n: usize
Number of columns in the output matrix
k: usize
Reduction dimension
lhs_batches: Vec<usize>
Batch shape for Lhs tensor
rhs_batches: Vec<usize>
Batch shape for Rhs tensor
lhs_layout: MatrixLayout
Memory layout of the Lhs matrix.
rhs_layout: MatrixLayout
Memory layout of the Rhs matrix.
Trait Implementations§
Source§impl Clone for MatmulProblem
impl Clone for MatmulProblem
Source§fn clone(&self) -> MatmulProblem
fn clone(&self) -> MatmulProblem
Returns a duplicate 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 MatmulProblem
impl Debug for MatmulProblem
Source§impl From<&MatmulProblem> for MatmulKind
impl From<&MatmulProblem> for MatmulKind
Source§fn from(problem: &MatmulProblem) -> Self
fn from(problem: &MatmulProblem) -> Self
Converts to this type from the input type.
Source§impl From<MatmulProblem> for MatmulKind
impl From<MatmulProblem> for MatmulKind
Source§fn from(problem: MatmulProblem) -> Self
fn from(problem: MatmulProblem) -> Self
Converts to this type from the input type.
Source§impl From<MatmulProblem> for MatmulProblemSize
impl From<MatmulProblem> for MatmulProblemSize
Source§fn from(problem: MatmulProblem) -> Self
fn from(problem: MatmulProblem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MatmulProblem
impl RefUnwindSafe for MatmulProblem
impl Send for MatmulProblem
impl Sync for MatmulProblem
impl Unpin for MatmulProblem
impl UnwindSafe for MatmulProblem
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