For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
rms_norm
def rms_norm[dtype: DType, rank: Int, InputFn: def[width: Int, alignment: Int, coord_rank: Int](IndexList[coord_rank]) -> SIMD[dtype, width] & RegisterPassable & ImplicitlyCopyable, OutputFn: def[width: SIMDLength, rank: Int, alignment: Int](IndexList[rank], SIMD[dtype, width]) -> None & RegisterPassable & ImplicitlyCopyable, AxisSizeT: CoordLike, /, target: StringSpan[ImmStaticOrigin], multiply_before_cast: Bool = True, reduce_dim: Int = (rank - Int(1))](input_fn: InputFn, output_fn: OutputFn, shape: Coord, axis_size: AxisSizeT, gamma: TileTensor[dtype, Storage=gamma.Storage, address_space=gamma.address_space, linear_idx_type=gamma.linear_idx_type], epsilon: Scalar[dtype], weight_offset: Scalar[dtype], context: Optional[DeviceContext] = None) where identical(InputFn.dtype, dtype) where identical(OutputFn.dtype, dtype)