fn
group_norm_op
→TensorImplPtrint group_norm_op(const int & x, const int & gamma, const int & beta, int num_groups, double eps)Python wrappers
Public Python APIs implemented by this engine symbol.Public free-function entry point for Group Normalization.
Thin wrapper that delegates to GroupNormBackward::forward.
This is the symbol the pybind11 binding layer forwards to from
lucid.nn.functional.group_norm.
See Also
GroupNormBackward : Autograd node implementing the forward + backward.
layer_norm_op : Equivalent when num_groups == 1.
Parameters
xTensorImplPtrInput tensor of shape
(B, C, S_0, ...) with rank >= 2.gammaTensorImplPtrPer-channel scale of shape
(C,).betaTensorImplPtrPer-channel shift of shape
(C,).num_groupsintNumber of groups; must divide
C evenly.epsdoubleNumerical-stability constant.
Returns
TensorImplPtrNormalised output, same shape as x.