class_docstr: Effective Squeeze-Excitation
  From `CenterMask : Real-Time Anchor-Free Instance Segmentation` - https://arxiv.org/abs/1911.06667
class_docstr_tok: ["Effective","Squeeze-Excitation","From","`","CenterMask",":","Real-Time","Anchor-Free","Instance","Segmentation","`","-","https",":","\/\/arxiv.org\/abs\/1911.06667"]
code: def __init__(self, channels, act="hardsigmoid"):
      super(EffectiveSELayer, self).__init__()
      self.fc = nn.Conv2D(channels, channels, kernel_size=1, padding=0)
      self.act = (
          get_act_fn(act)
          if act is None or isinstance(act, (str, dict))
          else act
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddle import ParamAttr
  from paddle.regularizer import L2Decay
  from paddle.nn.initializer import Constant
  from ppdet.modeling.ops import get_act_fn
  from ppdet.core.workspace import register, serializable
  from ..shape_spec import ShapeSpec
label_desc: Use image node_id 1 to create a new EffectiveSELayer object from inherited base classes: nn with example: obj = EffectiveSELayer(channels, act)