class_docstr: Construct channel-wise SELayer with the mix of average pooling and max pooling.
class_docstr_tok: ["Construct","channel-wise","SELayer","with","the","mix","of","average","pooling","and","max","pooling","."]
code: def forward(self, x):
      b, c, _, _, _ = x.size()
      y_avg = self.avg_pool(x)
      y_max = self.max_pool(x)
      y = torch.cat((y_avg, y_max), dim=2).squeeze().unsqueeze(dim=1)
      y = self.conv(y).squeeze()
      y = self.fc(y).view(b, c, 1, 1, 1)
      # out = x * y.expand_as(x)
      y = y - 0.5
      out = x + x * y.expand_as(x)
      return out
  
imports: import torch
  import torch.nn
label_desc: Use image node_id 2 for calling the SELayerMAC obj's underlying member method code with example usage: obj.forward(x) and returns: out