pub enum MatrixLayout {
RowMajor,
ColMajor,
}Expand description
Layout of a 2D structure such as a tensor, shared memory or slice, used within any matmul kernel level
Variants§
Implementations§
Source§impl MatrixLayout
impl MatrixLayout
pub fn new_RowMajor() -> Self
pub fn __expand_new_RowMajor(_: &mut Scope) -> MatrixLayoutExpand
pub fn new_ColMajor() -> Self
pub fn __expand_new_ColMajor(_: &mut Scope) -> MatrixLayoutExpand
Source§impl MatrixLayout
impl MatrixLayout
pub fn from_shape_and_strides( shape: &[usize], strides: &[usize], scheme: Option<&QuantScheme>, ) -> Result<Self, InvalidConfigError>
pub fn to_strides(&self, shape: &[usize]) -> Strides
Trait Implementations§
Source§impl Clone for MatrixLayout
impl Clone for MatrixLayout
Source§fn clone(&self) -> MatrixLayout
fn clone(&self) -> MatrixLayout
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 CubeDebug for MatrixLayout
impl CubeDebug for MatrixLayout
Source§fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
Set the debug name of this type’s expansion. Should do nothing for types that don’t appear
at runtime
Source§impl CubeType for MatrixLayout
impl CubeType for MatrixLayout
Source§impl Debug for MatrixLayout
impl Debug for MatrixLayout
Source§impl Default for MatrixLayout
impl Default for MatrixLayout
Source§fn default() -> MatrixLayout
fn default() -> MatrixLayout
Returns the “default value” for a type. Read more
Source§impl Hash for MatrixLayout
impl Hash for MatrixLayout
Source§impl PartialEq for MatrixLayout
impl PartialEq for MatrixLayout
impl Copy for MatrixLayout
impl Eq for MatrixLayout
impl StructuralPartialEq for MatrixLayout
Auto Trait Implementations§
impl Freeze for MatrixLayout
impl RefUnwindSafe for MatrixLayout
impl Send for MatrixLayout
impl Sync for MatrixLayout
impl Unpin for MatrixLayout
impl UnsafeUnpin for MatrixLayout
impl UnwindSafe for MatrixLayout
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<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CompilationArg for T
impl<T> CompilationArg for T
Source§fn dynamic_cast<Arg>(&self) -> Argwhere
Arg: CompilationArg,
fn dynamic_cast<Arg>(&self) -> Argwhere
Arg: CompilationArg,
Compilation args should be the same even with different element types. However, it isn’t
possible to enforce it with the type system. So, we make the compilation args serializable
and dynamically cast them. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.