Mojo struct
SplitKPartition
struct SplitKPartition[dtype: DType]
Fieldsβ
- βptr (
UnsafePointer[Scalar[SplitKPartition[dtype].accum_dtype], MutAnyOrigin]): - βnum_partitions_value (
UInt32):
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
MHAPartitionScheme,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime membersβ
accum_dtypeβ
comptime accum_dtype = dtype
do_partitionβ
comptime do_partition = True
Methodsβ
__init__β
__init__(ptr: UnsafePointer[Scalar[SplitKPartition[dtype].accum_dtype], MutAnyOrigin], num_partitions_value: UInt32) -> Self
num_partitionsβ
get_exp_sum_qk_max_pointerβ
get_exp_sum_qk_max_pointer(self) -> UnsafePointer[Scalar[SplitKPartition[dtype].accum_dtype], MutAnyOrigin]
Returns:
UnsafePointer[Scalar[SplitKPartition[dtype].accum_dtype], MutAnyOrigin]
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!