class_docstr: The :class:`PadLayer` class is a padding layer for any mode and dimension.
  Please see `tf.pad <https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/pad>`__ for usage.
  
  Parameters
  ----------
  padding : list of lists of 2 ints, or a Tensor of type int32.
      The int32 values to pad.
  mode : str
      "CONSTANT", "REFLECT", or "SYMMETRIC" (case-insensitive).
  name : None or str
      A unique layer name.
  
  Examples
  --------
  With TensorLayer
  
  >>> net = tl.layers.Input([None, 224, 224, 3], name='input')
  >>> padlayer = tl.layers.PadLayer([[0, 0], [3, 3], [3, 3], [0, 0]], "REFLECT", name='inpad')(net)
  >>> print(padlayer)
  >>> output shape : (None, 106, 106, 3)
class_docstr_tok: ["The",":","class",":","`","PadLayer","`","class","is","a","padding","layer","for","any","mode","and","dimension",".","Please","see","`","tf.pad","<","https",":","\/\/www.tensorflow.org\/versions\/r2.0\/api_docs\/python\/tf\/pad",">","`","__","for","usage",".","Parameters","--","--","--","--","--","padding",":","list","of","lists","of","2","ints",",","or","a","Tensor","of","type","int32",".","The","int32","values","to","pad",".","mode",":","str","``","CONSTANT","''",",","``","REFLECT","''",",","or","``","SYMMETRIC","''","(","case-insensitive",")",".","name",":","None","or","str","A","unique","layer","name",".","Examples","--","--","--","--","With","TensorLayer",">",">",">","net","=","tl.layers.Input","(","[","None",",","224",",","224",",","3","]",",","name='input","'",")",">",">",">","padlayer","=","tl.layers.PadLayer","(","[","[","0",",","0","]",",","[","3",",","3","]",",","[","3",",","3","]",",","[","0",",","0","]","]",",","``","REFLECT","''",",","name='inpad","'",")","(","net",")",">",">",">","print","(","padlayer",")",">",">",">","output","shape",":","(","None",",","106",",","106",",","3",")"]
code: def __repr__(self):
      s = "{classname}(padding={padding}, mode={mode}"
      if self.name is not None:
          s += ", name='{name}'"
      s += ")"
      return s.format(
          classname=self.__class__.__name__, **self.__dict__
      )
  
imports: import tensorflow
  import tensorlayer
  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 PadLayer obj's underlying member method code with example usage: obj.__repr__() and returns: s