Mojo function
rms_norm_cpu
rms_norm_cpu[dtype: DType, //, input_fn: def[width: Int](Int, Int) capturing -> SIMD[dtype, width], output_fn: def[width: Int, alignment: Int](Int, Int, SIMD[dtype, width]) capturing -> None, multiply_before_cast: Bool](gamma: TileTensor[dtype, gamma.LayoutType, gamma.origin, address_space=gamma.address_space, linear_idx_type=gamma.linear_idx_type, element_size=gamma.element_size], epsilon: Scalar[dtype], weight_offset: Scalar[dtype], out_shape: IndexList[2])
rms_norm_cpu[dtype: DType, rank: Int, //, input_fn: def[width: Int, rank: Int](IndexList[rank]) capturing -> SIMD[dtype, width], output_fn: def[width: Int, alignment: Int](IndexList[rank], SIMD[dtype, width]) capturing -> None, multiply_before_cast: Bool](shape: IndexList[rank], gamma: TileTensor[dtype, gamma.LayoutType, gamma.origin, address_space=gamma.address_space, linear_idx_type=gamma.linear_idx_type, element_size=gamma.element_size], epsilon: Scalar[dtype], weight_offset: Scalar[dtype])
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!