Skip to content
fn

global_response_norm_op

→TensorImplPtr
int global_response_norm_op(const int & x, const int & gamma, const int & beta, double eps)

Public free-function entry point for Global Response Normalization.

Thin wrapper that delegates to GlobalResponseNormBackward::forward. This is the symbol the pybind11 binding layer forwards to from the ConvNeXt-V2 building block in lucid.nn.functional.

See Also

GlobalResponseNormBackward : Autograd node implementing the forward + backward.

Parameters

xTensorImplPtr
4-D input tensor of shape (N, C, H, W).
gammaTensorImplPtr
Per-channel scale of shape (C,).
betaTensorImplPtr
Per-channel shift of shape (C,).
epsdouble
Numerical-stability constant.

Returns

TensorImplPtr

Normalised output, same shape as x.