Mojo function
softmax_kernel
softmax_kernel[BLOCK_SIZE: Int, input_fn: fn[_dtype: DType, _simd_width: Int, _rank: Int](IndexList[_rank]) capturing -> SIMD[_dtype, _simd_width], dtype: DType, rank: Int, accum_type: DType = get_accum_type[dtype](), *, sink: Bool = False, logsoftmax: Bool = False](shape: IndexList[rank], output: NDBuffer[dtype, rank, MutableAnyOrigin], sink_weights: NDBuffer[dtype, 1, MutableAnyOrigin])
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!