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
group_norm_gpu_multi_block_stats
def group_norm_gpu_multi_block_stats[StatsLayoutType: TensorLayout, stats_origin: MutOrigin, //, dtype: DType, simd_width: Int, input_fn: def[width: Int](row: Int, col: Int) capturing thin -> SIMD[dtype, width]](stats: TileTensor[get_accum_type[dtype](), StatsLayoutType, stats_origin], num_splits: Int32, group_size: Int32)
Multi-block stats kernel: computes partial Welford statistics per split.
Grid: num_rows * _num_splits blocks. Each block handles one split of one group and writes partial (mean, m2, count) to the stats buffer. Stats layout: stats[block_idx * 3 + {0,1,2}] = {mean, m2, count}.