AveragePooling1D

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

1D average pooling layer.

__init__

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

Create a AveragePooling1D Layer.

Parameters:
  • pool_size (Union[int, Sequence[int]], optional, default=2) – The size of pooling window.
  • strides (Sequence[int], optional) – The stride of pooling window.
  • padding (Union[int, Sequence[int], str], optional, default='valid') – The padding algorithm or size.
  • data_format (str, optional, default='channels_last') – 'channels_first' or 'channels_last'.