Struct CoopMatShape
pub struct CoopMatShape {
pub m: u32,
pub n: u32,
pub k: u32,
pub tile_m: u32,
pub tile_n: u32,
pub tile_k: u32,
pub a_type: DType,
pub b_type: DType,
pub c_type: DType,
}Expand description
Problem and tile descriptor for Cooperative Matrix / Tensor Core routing.
Fields§
§m: u32Batch / sequence dimension M (number of rows of A and C).
n: u32Output feature dimension N (number of columns of B and C).
k: u32Inner accumulation dimension K.
tile_m: u32Tile M dimension (8 or 16).
tile_n: u32Tile N dimension (8 or 16).
tile_k: u32Tile K dimension (8, 16, or 32).
a_type: DTypeScalar type of matrix A.
b_type: DTypeScalar type of matrix B.
c_type: DTypeScalar type of accumulator/output matrix C.
Implementations§
§impl CoopMatShape
impl CoopMatShape
pub const fn f32_8x8x8(m: u32, n: u32, k: u32) -> CoopMatShape
pub const fn f16_16x16x16(m: u32, n: u32, k: u32) -> CoopMatShape
pub const fn i8_16x16x32(m: u32, n: u32, k: u32) -> CoopMatShape
pub const fn is_valid_tile_config(&self) -> bool
pub const fn is_valid_tile_config(&self) -> bool
Returns whether (tile_m, tile_n, tile_k) and (a_type, b_type, c_type) form a
supported Etalon Cooperative Matrix hardware tile configuration.
Trait Implementations§
§impl Clone for CoopMatShape
impl Clone for CoopMatShape
§fn clone(&self) -> CoopMatShape
fn clone(&self) -> CoopMatShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CoopMatShape
§impl Debug for CoopMatShape
impl Debug for CoopMatShape
impl Eq for CoopMatShape
§impl PartialEq for CoopMatShape
impl PartialEq for CoopMatShape
impl StructuralPartialEq for CoopMatShape
Auto Trait Implementations§
impl Freeze for CoopMatShape
impl RefUnwindSafe for CoopMatShape
impl Send for CoopMatShape
impl Sync for CoopMatShape
impl Unpin for CoopMatShape
impl UnsafeUnpin for CoopMatShape
impl UnwindSafe for CoopMatShape
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more