Expand description
InstanceNorm Triton kernels.
InstanceNorm normalises over the spatial dimensions (L) independently per sample (n) and per channel (c):
y[n,c,l] = (x[n,c,l] - mean[n,c]) / sqrt(var[n,c] + eps) * γ[c] + β[c]
Input shape: [N, C, L] — N batch, C channels, L spatial elements.
Grid: [N * C] — one CTA per (sample, channel) pair.
The CTA index encodes the pair as cta = n * C + c.
Structs§
- Instance
Norm Backward - InstanceNorm backward pass.
- Instance
Norm Forward - InstanceNorm training forward — saves per-(n,c) mean and rstd.
- Instance
Norm Forward Inference - InstanceNorm forward (inference — no running stats).
Functions§
- instance_
norm_ backward - InstanceNorm backward pass.
- instance_
norm_ forward - InstanceNorm training forward — saves per-(n,c) mean and rstd.
- instance_
norm_ forward_ inference - InstanceNorm forward (inference — no running stats).