Skip to main content

Mojo function

softmax_kernel

softmax_kernel[BLOCK_SIZE: Int, input_fn: fn[DType, Int, Int](IndexList[$2]) capturing -> SIMD[$0, $1], dtype: DType, rank: Int, accum_type: DType = get_accum_type[::DType,::DType](), *, sink: Bool = False](shape: IndexList[rank], output: NDBuffer[dtype, rank, MutableAnyOrigin], sink_weights: NDBuffer[dtype, 1, MutableAnyOrigin])

Was this page helpful?