class_docstr: Atrous Spatial Pyramid Pooling.
  
  Args:
      aspp_ratios (tuple): The dilation rate using in ASSP module.
      in_channels (int): The number of input channels.
      out_channels (int): The number of output channels.
      align_corners (bool): An argument of F.interpolate. It should be set to False when the output size of feature
          is even, e.g. 1024x512, otherwise it is True, e.g. 769x769.
      use_sep_conv (bool, optional): If using separable conv in ASPP module. Default: False.
      image_pooling (bool, optional): If augmented with image-level features. Default: False
class_docstr_tok: ["Atrous","Spatial","Pyramid","Pooling",".","Args",":","aspp_ratios","(","tuple",")",":","The","dilation","rate","using","in","ASSP","module",".","in_channels","(","int",")",":","The","number","of","input","channels",".","out_channels","(","int",")",":","The","number","of","output","channels",".","align_corners","(","bool",")",":","An","argument","of","F.interpolate",".","It","should","be","set","to","False","when","the","output","size","of","feature","is","even",",","e.g",".","1024x512",",","otherwise","it","is","True",",","e.g",".","769x769",".","use_sep_conv","(","bool",",","optional",")",":","If","using","separable","conv","in","ASPP","module",".","Default",":","False",".","image_pooling","(","bool",",","optional",")",":","If","augmented","with","image-level","features",".","Default",":","False"]
code: def forward(self, x: paddle.Tensor) -> paddle.Tensor:
      outputs = []
      for block in self.aspp_blocks:
          y = block(x)
          y = F.interpolate(
              y,
              x.shape[2:],
              mode="bilinear",
              align_corners=self.align_corners,
          )
          outputs.append(y)
  
      if self.image_pooling:
          img_avg = self.global_avg_pool(x)
          img_avg = F.interpolate(
              img_avg,
              x.shape[2:],
              mode="bilinear",
              align_corners=self.align_corners,
          )
          outputs.append(img_avg)
  
      x = paddle.concat(outputs, axis=1)
      x = self.conv_bn_relu(x)
      x = self.dropout(x)
  
      return x
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddle.nn.layer import activation
  from paddle.nn import Conv2D, AvgPool2D
label_desc: Use image node_id 2 for calling the ASPPModule obj's underlying member method code with example usage: obj.forward(x) and returns: x