class_docstr: Zero-padding layer for 2D input (e.g. picture).
  The input of this layer should be 4D.
  
  When you use this layer as the first layer of a model, you need to provide the argument
  input_shape (a shape tuple, does not include the batch dimension).
  
  # Arguments
  padding: Int tuple of length 2 or length 4.
           If tuple of length 2, how many zeros to add both at the beginning and
           at the end of rows and cols.
           If tuple of length 4, how many zeros to add in the order
           '(top_pad, bottom_pad, left_pad, right_pad)'.
           Default is (1, 1).
  dim_ordering: Format of input data. Either 'th' (Channel First) or 'tf' (Channel Last).
                Default is 'th'.
  input_shape: A shape tuple, not including batch.
  name: String to set the name of the layer.
        If not specified, its name will by default to be a generated string.
  
  >>> zeropadding2d = ZeroPadding2D(padding=(2, 1), input_shape=(2, 8, 8))
  creating: createZooKerasZeroPadding2D
class_docstr_tok: ["Zero-padding","layer","for","2D","input","(","e.g",".","picture",")",".","The","input","of","this","layer","should","be","4D",".","When","you","use","this","layer","as","the","first","layer","of","a","model",",","you","need","to","provide","the","argument","input_shape","(","a","shape","tuple",",","does","not","include","the","batch","dimension",")",".","#","Arguments","padding",":","Int","tuple","of","length","2","or","length","4",".","If","tuple","of","length","2",",","how","many","zeros","to","add","both","at","the","beginning","and","at","the","end","of","rows","and","cols",".","If","tuple","of","length","4",",","how","many","zeros","to","add","in","the","order","'","(","top_pad",",","bottom_pad",",","left_pad",",","right_pad",")","'",".","Default","is","(","1",",","1",")",".","dim_ordering",":","Format","of","input","data",".","Either","'th","'","(","Channel","First",")","or","'tf","'","(","Channel","Last",")",".","Default","is","'th","'",".","input_shape",":","A","shape","tuple",",","not","including","batch",".","name",":","String","to","set","the","name","of","the","layer",".","If","not","specified",",","its","name","will","by","default","to","be","a","generated","string",".",">",">",">","zeropadding2d","=","ZeroPadding2D","(","padding=","(","2",",","1",")",",","input_shape=","(","2",",","8",",","8",")",")","creating",":","createZooKerasZeroPadding2D"]
code: def __init__(
      self,
      padding=(1, 1),
      dim_ordering="th",
      input_shape=None,
      **kwargs,
  ):
      if len(padding) == 2:
          padding = (padding[0], padding[0], padding[1], padding[1])
      super(ZeroPadding2D, self).__init__(
          None,
          padding,
          dim_ordering,
          list(input_shape) if input_shape else None,
          **kwargs,
      )
  
imports: import sys
  from ..engine.topology import ZooKerasLayer
label_desc: Use image node_id 1 to create a new ZeroPadding2D object from inherited base classes: ZooKerasLayer with example: obj = ZeroPadding2D(padding, dim_ordering, input_shape)