class_docstr: Cropping 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
  cropping: Int tuple of tuple of length 2. How many units should be trimmed off
            at the beginning and end of the 2 cropping dimensions (i.e. height and width).
            Default is ((0, 0), (0, 0)).
  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.
  
  >>> cropping2d = Cropping2D(cropping=((1, 2), (0, 1)), input_shape=(12, 12, 12))
  creating: createZooKerasCropping2D
class_docstr_tok: ["Cropping","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","cropping",":","Int","tuple","of","tuple","of","length","2",".","How","many","units","should","be","trimmed","off","at","the","beginning","and","end","of","the","2","cropping","dimensions","(","i.e",".","height","and","width",")",".","Default","is","(","(","0",",","0",")",",","(","0",",","0",")",")",".","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",".",">",">",">","cropping2d","=","Cropping2D","(","cropping=","(","(","1",",","2",")",",","(","0",",","1",")",")",",","input_shape=","(","12",",","12",",","12",")",")","creating",":","createZooKerasCropping2D"]
code: def __init__(
      self,
      cropping=((0, 0), (0, 0)),
      dim_ordering="th",
      input_shape=None,
      **kwargs,
  ):
      super(Cropping2D, self).__init__(
          None,
          cropping[0],
          cropping[1],
          dim_ordering,
          list(input_shape) if input_shape else None,
          **kwargs,
      )
  
imports: import sys
  from ..engine.topology import ZooKerasLayer
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 1 to create a new Cropping2D object from inherited base classes: ZooKerasLayer with example: obj = Cropping2D(cropping, dim_ordering, input_shape)