MaxPool2D

class dragon.vm.tensorflow.keras.layers.MaxPooling2D(
  pool_size=2, 2,
  strides=None,
  padding='valid',
  data_format=None,
  **kwargs
)[source]

The max 2d pooling layer.

__init__

MaxPooling2D.__init__(
  pool_size=2, 2,
  strides=None,
  padding='valid',
  data_format=None,
  **kwargs
)[source]

Create a MaxPooling2D Layer.

Parameters:
  • pool_size (Sequence[int]) – The size(s) of sliding window.
  • strides (Sequence[int], optional) – The stride(s) of sliding window.
  • padding (Union[{'valid', 'same'}, Sequence[int]], optional) – The padding algorithm or padding sizes.
  • data_format ({'channels_first', 'channels_last'}, optional) – The optional data format.