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, layout: Layout, sink_type: DType, rank: Int, accum_type: DType = get_accum_type[dtype](), *, sink: Bool = False, logsoftmax: Bool = False](shape: IndexList[rank], output: LayoutTensor[dtype, layout, MutableAnyOrigin], sink_weights: LayoutTensor[sink_type, Layout.row_major(-1), MutableAnyOrigin])
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!