class_docstr: The :class:`UpSampling2d` class is a up-sampling 2D layer.
  
  See `tf.image.resize_images <https://www.tensorflow.org/api_docs/python/tf/image/resize_images>`__.
  
  Parameters
  ----------
  scale : int/float or tuple of int/float
      (height, width) scale factor.
  method : str
      The resize method selected through the given string. Default 'bilinear'.
          - 'bilinear', Bilinear interpolation.
          - 'nearest', Nearest neighbor interpolation.
          - 'bicubic', Bicubic interpolation.
          - 'area', Area interpolation.
  antialias : boolean
      Whether to use an anti-aliasing filter when downsampling an image.
  data_format : str
      channels_last 'channel_last' (default) or channels_first.
  name : None or str
      A unique layer name.
  
  Examples
  ---------
  With TensorLayer
  
  >>> ni = tl.layers.Input([None, 50, 50, 32], name='input')
  >>> ni = tl.layers.UpSampling2d(scale=(2, 2))(ni)
  >>> output shape : [None, 100, 100, 32]
code: def __repr__(self):
      s = "{classname}(scale={scale}, method={method}"
      if self.name is not None:
          s += ", name='{name}'"
      s += ")"
      return s.format(
          classname=self.__class__.__name__,
          scale=self.scale,
          method=self.method,
          name=self.name,
      )
  
file_path: TensorLayer/tensorlayer/layers/image_resampling.py
imports: import tensorflow
  from tensorlayer import logging
  from tensorlayer.decorators import deprecated_alias
  from tensorlayer.layers.core import Layer
label_desc: Use image node_id 2 for calling the UpSampling2d obj's underlying member method code with example usage: obj.__repr__() and returns: s