Skip to main content

Mojo function

rms_norm

rms_norm[dtype: DType, rank: Int, input_0_fn: def[width: Int, rank: Int](IndexList[rank]) capturing -> SIMD[dtype, width], output_0_fn: def[width: Int, rank: Int, alignment: Int](idx: IndexList[rank], val: SIMD[dtype, width]) capturing -> None, /, target: StringSlice[StaticConstantOrigin] = StringSlice("cpu"), multiply_before_cast: Bool = True](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], ctx: DeviceContextPtr)

Was this page helpful?