Skip to main content

Mojo function

group_norm

group_norm[type: DType, rank: Int, input_fn: fn[Int, Int](IndexList[$1]) capturing -> SIMD[type, $0], gamma_fn: fn[Int](IndexList[1]) capturing -> SIMD[type, $0], beta_fn: fn[Int](IndexList[1]) capturing -> SIMD[type, $0], /, target: StringSlice[StaticConstantOrigin] = __init__[__mlir_type.!kgen.string]("gpu")](shape: IndexList[rank], epsilon: SIMD[type, 1], num_groups: Int, output: NDBuffer[type, rank, origin, shape, strides], ctx: DeviceContextPtr)

Was this page helpful?