Skip to main content

Mojo function

rms_norm_fused_residual_add_cpu

rms_norm_fused_residual_add_cpu[dtype: DType, rank: Int, //, input_0_fn: fn[Int, Int](IndexList[$1]) capturing -> SIMD[dtype, $0], residual_input_fn: fn[Int, Int](IndexList[$1]) capturing -> SIMD[dtype, $0], output_0_fn: fn[Int, Int](idx: IndexList[rank], val: SIMD[dtype, $0]) capturing -> None, output_residual_fn: fn[Int, Int](IndexList[rank], SIMD[dtype, $0]) capturing -> None, /, multiply_before_cast: Bool = True](shape: IndexList[rank], gamma1: NDBuffer[dtype, 1, origin], epsilon1: SIMD[dtype, 1], weight_offset1: SIMD[dtype, 1], gamma2: NDBuffer[dtype, 1, origin], epsilon2: SIMD[dtype, 1], weight_offset2: SIMD[dtype, 1])

Was this page helpful?