class_docstr: The :class:`ZeroPad2d` class is a 2D padding layer for image [batch, height, width, channel].
  
  Parameters
  ----------
  padding : int, or tuple of 2 ints, or tuple of 2 tuples of 2 ints.
          - If int, the same symmetric padding is applied to width and height.
          - If tuple of 2 ints, interpreted as two different symmetric padding values for height and width as ``(symmetric_height_pad, symmetric_width_pad)``.
          - If tuple of 2 tuples of 2 ints, interpreted as ``((top_pad, bottom_pad), (left_pad, right_pad))``.
  name : None or str
      A unique layer name.
  
  Examples
  --------
  With TensorLayer
  
  >>> net = tl.layers.Input([None, 100, 100, 3], name='input')
  >>> pad2d = tl.layers.ZeroPad2d(padding=((3, 3), (4, 4)))(net)
  >>> print(pad2d)
  >>> output shape : (None, 106, 108, 3)
class_docstr_tok: ["The",":","class",":","`","ZeroPad2d","`","class","is","a","2D","padding","layer","for","image","[","batch",",","height",",","width",",","channel","]",".","Parameters","--","--","--","--","--","padding",":","int",",","or","tuple","of","2","ints",",","or","tuple","of","2","tuples","of","2","ints",".","-","If","int",",","the","same","symmetric","padding","is","applied","to","width","and","height",".","-","If","tuple","of","2","ints",",","interpreted","as","two","different","symmetric","padding","values","for","height","and","width","as","``","(","symmetric_height_pad",",","symmetric_width_pad",")","``",".","-","If","tuple","of","2","tuples","of","2","ints",",","interpreted","as","``","(","(","top_pad",",","bottom_pad",")",",","(","left_pad",",","right_pad",")",")","``",".","name",":","None","or","str","A","unique","layer","name",".","Examples","--","--","--","--","With","TensorLayer",">",">",">","net","=","tl.layers.Input","(","[","None",",","100",",","100",",","3","]",",","name='input","'",")",">",">",">","pad2d","=","tl.layers.ZeroPad2d","(","padding=","(","(","3",",","3",")",",","(","4",",","4",")",")",")","(","net",")",">",">",">","print","(","pad2d",")",">",">",">","output","shape",":","(","None",",","106",",","108",",","3",")"]
code: def __init__(
      self,
      padding,
      name=None,  # 'zeropad2d',
  ):
      super().__init__(name)
  
      self.padding = padding
      logging.info(
          "ZeroPad2d   %s: padding: %s" % (self.name, str(self.padding))
      )
  
      if not isinstance(self.padding, (int, tuple)):
          raise AssertionError(
              "Padding should be of type `int` or `tuple`"
          )
  
      self.build()
      self._built = True
  
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 1 to create a new ZeroPad2d object from inherited base classes: Layer with example: obj = ZeroPad2d(padding, name)