Mojo struct
GEMMKind
struct GEMMKind
Struct for GEMM types.
This struct defines the different types of GEMM that is supported by BlackWell Such as BMM, GEMM, GMM, etc.
Implemented traitsβ
AnyType,
Copyable,
Equatable,
Hashable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable,
RegisterPassable,
TrivialRegisterPassable,
Writable
comptime membersβ
BLOCK_SCALED_1D2D_FP8β
comptime BLOCK_SCALED_1D2D_FP8 = GEMMKind(Int32(3))
BLOCK_SCALED_1D2D_FP8 type.
BMMβ
comptime BMM = GEMMKind(Int32(1))
BMM type.
GEMMβ
comptime GEMM = GEMMKind(Int32(0))
GEMM type.
GMMβ
comptime GMM = GEMMKind(Int32(2))
GMM type.
Methodsβ
__eq__β
__eq__(self, other: Self) -> Bool
Check if two GEMM kinds are equal.
Args:
- βother (
Self): The other GEMM kind to compare with.
Returns:
Bool: True if the GEMM kinds are equal, False otherwise.
__ne__β
__ne__(self, other: Self) -> Bool
Check if two GEMM kinds are not equal.
Args:
- βother (
Self): The other GEMM kind to compare with.
Returns:
Bool: True if the GEMM kinds are not equal, False otherwise.
__int__β
__int__(self) -> Int
Convert GEMM kind to an integer value.
Returns:
Int: The integer value representing the GEMM type.
write_toβ
write_to(self, mut writer: T)
Write the GEMM kind to a writer.
Args:
- βwriter (
T): The writer to write the GEMM kind to.
__str__β
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!