class_docstr: Global Response Normalization layer
      
class_docstr_tok: ["Global","Response","Normalization","layer"]
code: def __init__(self, dim, eps=1e-6, channels_last=True):
      super().__init__()
      self.eps = eps
      if channels_last:
          self.spatial_dim = (1, 2)
          self.channel_dim = -1
          self.wb_shape = (1, 1, 1, -1)
      else:
          self.spatial_dim = (2, 3)
          self.channel_dim = 1
          self.wb_shape = (1, -1, 1, 1)
  
      self.weight = nn.Parameter(torch.zeros(dim))
      self.bias = nn.Parameter(torch.zeros(dim))
  
imports: import torch
  from torch import nn
label_desc: Use image node_id 1 to create a new GlobalResponseNorm object from inherited base classes: nn with example: obj = GlobalResponseNorm(dim, eps, channels_last)