Mojo function
rms_norm_cpu
rms_norm_cpu[type: DType, //, input_fn: fn[Int](Int, Int) capturing -> SIMD[type, $0], output_fn: fn[Int](Int, Int, SIMD[type, $0]) capturing -> None, multiply_before_cast: Bool](gamma: NDBuffer[type, 1, origin], epsilon: SIMD[type, 1], weight_offset: SIMD[type, 1], out_shape: Index[2])
rms_norm_cpu[type: DType, rank: Int, //, input_fn: fn[Int, Int](Index[$1]) capturing -> SIMD[type, $0], output_fn: fn[Int](Index[rank], SIMD[type, $0]) capturing -> None, multiply_before_cast: Bool](shape: Index[rank], gamma: NDBuffer[type, 1, origin], epsilon: SIMD[type, 1], weight_offset: SIMD[type, 1])
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!