class_docstr: 'Effective Squeeze-Excitation
  From `CenterMask : Real-Time Anchor-Free Instance Segmentation` - https://arxiv.org/abs/1911.06667
code: def forward(self, x):
      x_se = x.mean((2, 3), keepdim=True)
      if self.add_maxpool:
          # experimental codepath, may remove or change
          x_se = 0.5 * x_se + 0.5 * x.amax((2, 3), keepdim=True)
      x_se = self.fc(x_se)
      return x * self.gate(x_se)
  
file_path: pytorch-image-models/timm/layers/squeeze_excite.py
imports: from torch import nn
  from .create_act import create_act_layer
  from .helpers import make_divisible
label_desc: Use image node_id 2 for calling the EffectiveSEModule obj's underlying member method code with example usage: obj.forward(x) and returns: unknown