Skip to main content

Mojo function

mha_splitk_reduce

mha_splitk_reduce[output_type: DType, depth: UInt, num_heads: UInt, num_threads: UInt, group: UInt = UInt(1), use_exp2: Bool = False](intermediate_ptr: UnsafePointer[Scalar[output_type]], output_ptr: UnsafePointer[Scalar[output_type]], exp_sum_ptr: UnsafePointer[Scalar[get_accum_type[output_type]()]], qk_max_ptr: UnsafePointer[Scalar[get_accum_type[output_type]()]], batch_size: Int, num_partitions: Int)

Was this page helpful?