class_docstr: Learning to downsample module.
  
  Args:
      in_channels (int): Number of input channels.
      dw_channels (tuple[int]): Number of output channels of the first and
          the second depthwise conv (dwconv) layers.
      out_channels (int): Number of output channels of the whole
          'learning to downsample' module.
      conv_cfg (dict | None): Config of conv layers. Default: None
      norm_cfg (dict | None): Config of norm layers. Default:
          dict(type='BN')
      act_cfg (dict): Config of activation layers. Default:
          dict(type='ReLU')
class_docstr_tok: ["Learning","to","downsample","module",".","Args",":","in_channels","(","int",")",":","Number","of","input","channels",".","dw_channels","(","tuple","[","int","]",")",":","Number","of","output","channels","of","the","first","and","the","second","depthwise","conv","(","dwconv",")","layers",".","out_channels","(","int",")",":","Number","of","output","channels","of","the","whole","'learning","to","downsample","'","module",".","conv_cfg","(","dict","|","None",")",":","Config","of","conv","layers",".","Default",":","None","norm_cfg","(","dict","|","None",")",":","Config","of","norm","layers",".","Default",":","dict","(","type='BN","'",")","act_cfg","(","dict",")",":","Config","of","activation","layers",".","Default",":","dict","(","type='ReLU","'",")"]
code: def forward(self, x):
      x = self.conv(x)
      x = self.dsconv1(x)
      x = self.dsconv2(x)
      return x
  
imports: import torch
  import torch.nn
  from annotator.uniformer.mmcv.cnn import ConvModule, DepthwiseSeparableConvModule, constant_init, kaiming_init
  from torch.nn.modules.batchnorm import _BatchNorm
  from annotator.uniformer.mmseg.models.decode_heads.psp_head import PPM
  from annotator.uniformer.mmseg.ops import resize
  from ..builder import BACKBONES
  from ..utils.inverted_residual import InvertedResidual
label_desc: Use image node_id 2 for calling the LearningToDownsample obj's underlying member method code with example usage: obj.forward(x) and returns: x