Skip to main content

Mojo function

group_norm_gpu_block

group_norm_gpu_block[LayoutType: TensorLayout, origin: MutOrigin, //, dtype: DType, simd_width: Scalar[DType.uint], input_fn: fn[width: Int](row: Int, col: Int) capturing -> SIMD[dtype, width], gamma_fn: fn[width: Int](IndexList[1]) capturing -> SIMD[dtype, width], beta_fn: fn[width: Int](IndexList[1]) capturing -> SIMD[dtype, width]](output: TileTensor[dtype, LayoutType, origin], epsilon: Scalar[dtype], num_groups: Int, channels_per_group: Int, spatial: Int)

Was this page helpful?