class_docstr: Upsample Module.
class_docstr_tok: ["Upsample","Module","."]
code: def forward(self, x):
      if not self.size:
          return F.interpolate(
              x, None, self.scale_factor, self.mode, self.align_corners
          )
      else:
          return F.interpolate(
              x, self.size, None, self.mode, self.align_corners
          )
  
imports: import numpy
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddleseg.cvlibs import manager
  from paddleseg.models import layers
  from paddleseg.utils import utils
label_desc: Use image node_id 2 for calling the Upsample obj's underlying member method code with example usage: obj.forward(x) and returns: F, F