Instance Normalization normalizes each instance (sample) and channel independently, ignoring batch statistics. Unlike BatchNorm which pools across the batch, InstanceNorm computes mean/variance per instance-channel pair.
instance_norm(x,γ,β,ϵ)=γσnc2+ϵx−μnc+βWhere mu_nc and sigma_nc are computed per instance and channel (across spatial dimensions).
Implement:
instance_norm(x, gamma, beta, eps=1e-5)
No results yet
Run your code to check it against the examples, or submit to run every test.