code: def __init__(self, channel, reduction):
      super(ChannelAtt, self).__init__()
      self.avg_pool = nn.AdaptiveAvgPool2D(1)
  
      self.fc = nn.Sequential(
          nn.Linear(channel, channel // reduction),
          nn.ReLU(),
          nn.Linear(channel // reduction, channel),
          nn.Sigmoid(),
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle.nn
  import paddle
  import math
label_desc: Use image node_id 1 to create a new ChannelAtt object from inherited base classes: nn with example: obj = ChannelAtt(channel, reduction)