Skip to main content

Mojo function

softmax_kernel

softmax_kernel[BLOCK_SIZE: Int, input_fn: def[_dtype: DType, _simd_width: Int, _rank: Int](IndexList[_rank]) capturing -> SIMD[_dtype, _simd_width], dtype: DType, sink_type: DType, rank: Int, OutputLayoutType: TensorLayout, output_origin: MutOrigin, accum_type: DType = get_accum_type[dtype](), *, sink: Bool = False, logsoftmax: Bool = False](shape: IndexList[rank], output: TileTensor[dtype, OutputLayoutType, output_origin], sink_weights: LayoutTensor[sink_type, Layout.row_major(-1), ImmutAnyOrigin])

Was this page helpful?