ZeroPadding2D

class dragon.vm.tensorflow.keras.layers.ZeroPadding2D(
  padding=1,
  data_format='channels_last',
  **kwargs
)[source]

2D zero padding layer.

__init__

ZeroPadding2D.__init__(
  padding=1,
  data_format='channels_last',
  **kwargs
)[source]

Create a ZeroPadding2D Layer.

Parameters:
  • padding (Union[int, Sequence[int], Sequence[Tuple[int]], optional, default=1) – The padding size.
  • data_format (str, optional, default='channels_last') – 'channels_first' or 'channels_last'.