Skip to main content
Log in

Mojo function

layer_norm

layer_norm[type: DType, rank: Int, input_0_fn: fn[Int, Int](Index[$1]) capturing -> SIMD[type, $0], input_1_fn: fn[Int, Int](Index[$1]) capturing -> SIMD[type, $0], /, target: StringSlice[StaticConstantOrigin] = __init__[__mlir_type.!kgen.string]("cpu")](shape: Index[rank], gamma_shape: Index[1], beta: NDBuffer[type, 1, origin], epsilon: SIMD[type, 1], output: NDBuffer[type, rank, origin, shape, strides], ctx: DeviceContextPtr)