Group Normalization divides channels into groups and normalizes within each group. Unlike BatchNorm which normalizes across batch dimension, GroupNorm normalizes within spatial dimensions and groups.
group_norm(x,num_groups,γ,β,ϵ)=γσg2+ϵx−μg+βWhere mu_g and sigma_g are computed per group (across spatial/channel within group).
Implement:
group_norm(x, num_groups, gamma, beta, eps=1e-5)
No results yet
Run your code to check it against the examples, or submit to run every test.