Mojo function
mha_splitk_reduce
mha_splitk_reduce[intermediate_type: DType, output_type: DType, depth: UInt, num_heads: UInt, num_threads: UInt, group: UInt = 1, use_exp2: Bool = False](intermediate_ptr: UnsafePointer[Scalar[intermediate_type], ImmutAnyOrigin], output_ptr: UnsafePointer[Scalar[output_type], MutAnyOrigin], exp_sum_ptr: UnsafePointer[Scalar[get_accum_type[output_type]()], MutAnyOrigin], qk_max_ptr: UnsafePointer[Scalar[get_accum_type[output_type]()], MutAnyOrigin], batch_size: Int, num_partitions: Int)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!